Hi.
Currently in org.springframework.util.CollectionUtils
there is only isEmpty()
method, and the isNotEmpty()
method would help to avoid !CollectionUtils.isEmpty()
, making the code more readable and standardized.
public static boolean isNotEmpty(@Nullable Collection<?> collection) {
return !isEmpty(collection);
}
Comment From: bclozel
Superseded by #34519