diff --git a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java old mode 100644 new mode 100755 index 7bc2911fa7..059a9be1e6 --- a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java +++ b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java @@ -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) {