This commit is contained in:
looly
2021-12-29 07:39:42 +08:00
parent c72ae732b2
commit 7c11e5d025
2 changed files with 3 additions and 7 deletions

View File

@@ -1541,7 +1541,7 @@ public class ArrayUtil extends PrimitiveArrayUtil {
*/
public static boolean isAllEmpty(Object... args) {
for (Object obj: args) {
if (!ObjectUtil.isEmpty(obj)) {
if (false == ObjectUtil.isEmpty(obj)) {
return false;
}
}
@@ -1556,12 +1556,7 @@ public class ArrayUtil extends PrimitiveArrayUtil {
* @since 4.5.18
*/
public static boolean isAllNotEmpty(Object... args) {
for (Object obj: args) {
if (ObjectUtil.isEmpty(obj)) {
return false;
}
}
return true;
return false == hasEmpty(args);
}
/**