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();
}
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) {

Loading…
Cancel
Save