mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-09 02:49:02 +00:00
Merge pull request #7538 from oscr:simplify-capitalize
* pr/7538: Remove redundant StringBuilder
This commit is contained in:
Regular → Executable
+2
-5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user