Merge pull request #7538 from oscr:simplify-capitalize

* pr/7538:
  Remove redundant StringBuilder
pull/7902/head
Stephane Nicoll 8 years ago
commit ef6130e25a

@ -536,11 +536,8 @@ public class PropertiesLauncher extends Launcher {
return builder.toString(); return builder.toString();
} }
private static Object capitalize(String str) { private static String capitalize(String str) {
StringBuilder sb = new StringBuilder(str.length()); return Character.toUpperCase(str.charAt(0)) + str.substring(1);
sb.append(Character.toUpperCase(str.charAt(0)));
sb.append(str.substring(1));
return sb.toString();
} }
private void log(String message) { private void log(String message) {

Loading…
Cancel
Save