Enhancement: Add CollectionUtils.isNotEmpty() #34518
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: superseded
An issue that has been superseded by another
Hi.
Currently in
org.springframework.util.CollectionUtils
there is onlyisEmpty()
method, and theisNotEmpty()
method would help to avoid!CollectionUtils.isEmpty()
, making the code more readable and standardized.public static boolean isNotEmpty(@Nullable Collection<?> collection) { return !isEmpty(collection); }
The text was updated successfully, but these errors were encountered: