Simplify String construction in StringUtils.changeFirstCharacterCase()
Closes gh-27012
This commit is contained in:
@@ -566,7 +566,7 @@ public abstract class StringUtils {
|
||||
|
||||
char[] chars = str.toCharArray();
|
||||
chars[0] = updatedChar;
|
||||
return new String(chars, 0, chars.length);
|
||||
return new String(chars);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user