Commit 3a7969b8 authored by Oscar Utbult's avatar Oscar Utbult Committed by Stephane Nicoll

Remove redundant StringBuilder

Closes gh-7538
parent 61e4d07c
......@@ -536,11 +536,8 @@ public class PropertiesLauncher extends Launcher {
return builder.toString();
}
private static Object capitalize(String str) {
StringBuilder sb = new StringBuilder(str.length());
sb.append(Character.toUpperCase(str.charAt(0)));
sb.append(str.substring(1));
return sb.toString();
private static String capitalize(String str) {
return Character.toUpperCase(str.charAt(0)) + str.substring(1);
}
private void log(String message) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment