mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix code
This commit is contained in:
parent
1ded096baa
commit
02a1859ab8
@ -3437,10 +3437,9 @@ public class CharSequenceUtil extends StrValidator {
|
||||
}
|
||||
|
||||
// 此处不复用传入的CharSequence,防止修改原对象
|
||||
final StringBuilder builder = new StringBuilder(str);
|
||||
builder.setCharAt(index, Character.toLowerCase(c));
|
||||
|
||||
return builder.toString();
|
||||
final char[] chars = string.toCharArray();
|
||||
chars[0] = Character.toLowerCase(chars[0]);
|
||||
return new String(chars);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user