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

@@ -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);
}
/**