Prepare release

This commit is contained in:
Looly 2020-12-16 08:58:35 +08:00
commit cb31eb9f6a

View File

@ -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;