Commit ef6130e2 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #7538 from oscr:simplify-capitalize

* pr/7538:
  Remove redundant StringBuilder
parents 61e4d07c 3a7969b8
......@@ -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