!974 操作集合之前使用CollUtil.isNotEmpty判断,IDEA会报警告

Merge pull request !974 from 爱花花/v5-dev
This commit is contained in:
Looly
2023-04-11 15:01:14 +00:00
committed by Gitee

View File

@@ -1741,7 +1741,7 @@ public class CollUtil {
* @return 是否为非空
*/
public static boolean isNotEmpty(Collection<?> collection) {
return false == isEmpty(collection);
return !isEmpty(collection);
}
/**