mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -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();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user