mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
Prepare release
This commit is contained in:
commit
cb31eb9f6a
@ -4146,7 +4146,7 @@ public class CharSequenceUtil {
|
|||||||
if (null == str) {
|
if (null == str) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (str.length() <= maxLength) {
|
if (maxLength <= 0 || str.length() <= maxLength) {
|
||||||
return str.toString();
|
return str.toString();
|
||||||
}
|
}
|
||||||
int w = maxLength / 2;
|
int w = maxLength / 2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user