openrewrite / rewrite-migrate-java

OpenRewrite recipes for migrating to newer versions of Java.
Apache License 2.0
100 stars 70 forks source link

use Apache Collections to check if a collection is empty/not empty #95

Open yeikel opened 2 years ago

yeikel commented 2 years ago

Follow up recipe for org.openrewrite.java.cleanup.IsEmptyCallOnCollections

https://commons.apache.org/proper/commons-collections/apidocs/org/apache/commons/collections4/CollectionUtils.html#isEmpty-java.util.Collection-

https://commons.apache.org/proper/commons-collections/apidocs/org/apache/commons/collections4/CollectionUtils.html#isEmpty-java.util.Collection-

pway99 commented 2 years ago

for: https://github.com/openrewrite/rewrite-migrate-java/tree/main/src/main/java/org/openrewrite/java/migrate/apache/commons