Skip to content

Commit

Permalink
Simplify String construction in StringUtils.changeFirstCharacterCase()
Browse files Browse the repository at this point in the history
  • Loading branch information
stsypanov authored Jun 4, 2021
1 parent 950b183 commit c9d341e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ private static String changeFirstCharacterCase(String str, boolean capitalize) {

char[] chars = str.toCharArray();
chars[0] = updatedChar;
return new String(chars, 0, chars.length);
return new String(chars);
}

/**
Expand Down

0 comments on commit c9d341e

Please sign in to comment.