Simplify String construction in StringUtils.changeFirstCharacterCase()

Closes gh-27012
This commit is contained in:
Сергей Цыпанов
2021-06-04 12:49:59 +03:00
committed by GitHub
parent 950b183715
commit c9d341e9c0

View File

@@ -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);
}
/**