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
a5be41c6a7
commit
990f1b5cc5
@ -4146,7 +4146,7 @@ public class CharSequenceUtil {
|
||||
if (null == str) {
|
||||
return null;
|
||||
}
|
||||
if (str.length() <= maxLength) {
|
||||
if (maxLength <= 0 || str.length() <= maxLength) {
|
||||
return str.toString();
|
||||
}
|
||||
int w = maxLength / 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user