Use final

This commit is contained in:
Gary Gregory 2022-06-14 08:58:07 -04:00
parent c18803a47f
commit 8e687f1cf2
1 changed files with 2 additions and 3 deletions

View File

@ -467,13 +467,12 @@ public class WordUtils {
* @return capitalized String, {@code null} if null String input * @return capitalized String, {@code null} if null String input
* @since 2.1 * @since 2.1
*/ */
public static String capitalizeFully(String str, final char... delimiters) { public static String capitalizeFully(final String str, final char... delimiters) {
final int delimLen = delimiters == null ? -1 : delimiters.length; final int delimLen = delimiters == null ? -1 : delimiters.length;
if (StringUtils.isEmpty(str) || delimLen == 0) { if (StringUtils.isEmpty(str) || delimLen == 0) {
return str; return str;
} }
str = str.toLowerCase(); return capitalize(str.toLowerCase(), delimiters);
return capitalize(str, delimiters);
} }
/** /**