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