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
+1
View File
@@ -14,6 +14,7 @@
* 【core 】 新增JdkUtil
* 【core 】 DateUtil.getZodiac增加越界检查(issue#3036@Github)
* 【core 】 CsvReader修改策略,添加可选是否关闭Reader重载,默认不关闭Reader(issue#I6UAX1@Gitee)
* 【core 】 isNotEmpty修改规则,避开IDEA错误提示(issue#I6UBMA@Gitee)
### 🐞Bug修复
* 【core 】 CollUtil.split优化切割列表参数判断,避免OOM(pr#3026@Github)
@@ -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);
}
/**
@@ -104,7 +104,7 @@ public class ArrayUtil extends PrimitiveArrayUtil {
* @return 是否为非空
*/
public static boolean isNotEmpty(Object array) {
return false == isEmpty(array);
return !isEmpty(array);
}
/**