!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
commit 07d3f26ceb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

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