diff options
author | Brian Vosburgh | 2016-06-15 21:15:23 +0000 |
---|---|---|
committer | Brian Vosburgh | 2017-05-18 22:37:05 +0000 |
commit | 8884050bd85a22d3365f8e3b25583a24dfd1543c (patch) | |
tree | 4ef47b7f6565194527565778ca13cfa3645c5cb2 /common | |
parent | 897d8b914a524ce0bc9accbc39c197e0a6295b3e (diff) | |
download | webtools.dali-8884050bd85a22d3365f8e3b25583a24dfd1543c.tar.gz webtools.dali-8884050bd85a22d3365f8e3b25583a24dfd1543c.tar.xz webtools.dali-8884050bd85a22d3365f8e3b25583a24dfd1543c.zip |
remove element generic type from CollectionIsEmptyPredicate
Diffstat (limited to 'common')
-rw-r--r-- | common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/CollectionIsEmptyPredicate.java | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/CollectionIsEmptyPredicate.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/CollectionIsEmptyPredicate.java index cb17eb1aba..a736f0ba56 100644 --- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/CollectionIsEmptyPredicate.java +++ b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/predicate/CollectionIsEmptyPredicate.java @@ -15,17 +15,13 @@ import org.eclipse.jpt.common.utility.predicate.Predicate; /** * Singleton predicate that evaluates whether a collection is empty. - * - * @param <E> the type of elements held by the collection */ -public final class CollectionIsEmptyPredicate<E> - implements Predicate<Collection<E>>, Serializable +public final class CollectionIsEmptyPredicate + implements Predicate<Collection<?>>, Serializable { - @SuppressWarnings("rawtypes") - public static final Predicate INSTANCE = new CollectionIsEmptyPredicate(); + public static final Predicate<Collection<?>> INSTANCE = new CollectionIsEmptyPredicate(); - @SuppressWarnings("unchecked") - public static <E> Predicate<Collection<E>> instance() { + public static Predicate<Collection<?>> instance() { return INSTANCE; } @@ -37,7 +33,7 @@ public final class CollectionIsEmptyPredicate<E> /** * Return whether the collection is empty. */ - public boolean evaluate(Collection<E> collection) { + public boolean evaluate(Collection<?> collection) { return collection.isEmpty(); } |