mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-18 22:19:34 +08:00
Prepare release
This commit is contained in:
commit
cb31eb9f6a
@ -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…
Reference in New Issue
Block a user