isNotEmpty修改规则,避开IDEA错误提示

This commit is contained in:
Looly 2023-04-11 23:16:32 +08:00
parent 07d3f26ceb
commit cd310a2bca
3 changed files with 4 additions and 3 deletions

View File

@ -14,6 +14,7 @@
* 【core 】 新增JdkUtil
* 【core 】 DateUtil.getZodiac增加越界检查issue#3036@Github
* 【core 】 CsvReader修改策略添加可选是否关闭Reader重载默认不关闭Readerissue#I6UAX1@Gitee
* 【core 】 isNotEmpty修改规则避开IDEA错误提示issue#I6UBMA@Gitee
### 🐞Bug修复
* 【core 】 CollUtil.split优化切割列表参数判断避免OOMpr#3026@Github

View File

@ -126,7 +126,7 @@ public class CharSequenceUtil {
* @see #isBlank(CharSequence)
*/
public static boolean isNotBlank(CharSequence str) {
return false == isBlank(str);
return !isBlank(str);
}
/**
@ -252,7 +252,7 @@ public class CharSequenceUtil {
* @see #isEmpty(CharSequence)
*/
public static boolean isNotEmpty(CharSequence str) {
return false == isEmpty(str);
return !isEmpty(str);
}
/**

View File

@ -104,7 +104,7 @@ public class ArrayUtil extends PrimitiveArrayUtil {
* @return 是否为非空
*/
public static boolean isNotEmpty(Object array) {
return false == isEmpty(array);
return !isEmpty(array);
}
/**