< prev index next >

src/java.base/share/classes/sun/launcher/LauncherHelper.java

Print this page
rev 10947 : 8055723: Replace concat String to append in StringBuilder parameters

@@ -367,14 +367,13 @@
      * initHelpSystem must be called before using this method.
      */
     static void appendVmErgoMessage(boolean isServerClass, String vm) {
         outBuf = outBuf.append(getLocalizedMessage("java.launcher.ergo.message1",
                 vm));
-        outBuf = (isServerClass)
-             ? outBuf.append(",\n" +
-                getLocalizedMessage("java.launcher.ergo.message2") + "\n\n")
-             : outBuf.append(".\n\n");
+        outBuf = (isServerClass) ? outBuf.append(",\n")
+                .append(getLocalizedMessage("java.launcher.ergo.message2"))
+                .append("\n\n") : outBuf.append(".\n\n");
     }
 
     /**
      * Appends the last invariant part to the previously created messages,
      * and finishes up the printing to the desired output stream.
< prev index next >