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

@ -7,6 +7,7 @@
### 🐣新特性
* 【db 】 优化Condition参数拆分pr#2046@Github
* 【core 】 优化ArrayUtil.isAllEmpty性能pr#2045@Github
### 🐞Bug修复
* 【http 】 HttpUtil重定向次数失效问题issue#I4O28Q@Gitee

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