mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Remove redundant StringBuilder
Closes gh-7538
This commit is contained in:
parent
61e4d07c49
commit
3a7969b8bb
7
spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java
Normal file → Executable file
7
spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java
Normal file → Executable file
@ -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…
Reference in New Issue
Block a user