Add missing @Deprecated annotations

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@815431 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2009-09-15 18:11:17 +00:00
parent 40a3bb8221
commit f260eb5dc4
3 changed files with 4 additions and 0 deletions

View File

@ -117,6 +117,7 @@ public class PredicateUtils {
* @return the predicate
* @deprecated use {@link FalsePredicate#()} instead.
*/
@Deprecated
public static <T> Predicate<T> falsePredicate() {
return FalsePredicate.<T>getInstance();
}

View File

@ -60,6 +60,7 @@ public final class AllPredicate<T> implements Predicate<T>, PredicateDecorator<T
* @throws IllegalArgumentException if any predicate in the array is null
* @deprecated Use {@link #allPredicate(Predicate<? super T>...)} instead
*/
@Deprecated
public static <T> Predicate<T> getInstance(Predicate<? super T> ... predicates) {
return allPredicate(predicates);
}
@ -99,6 +100,7 @@ public final class AllPredicate<T> implements Predicate<T>, PredicateDecorator<T
* @throws IllegalArgumentException if any predicate in the array is null
* @deprecated Use {@link #allPredicate(Collection<Predicate<? super T>>)} instead
*/
@Deprecated
public static <T> Predicate<T> getInstance(Collection<Predicate<T>> predicates) {
return allPredicate(predicates);
}

View File

@ -43,6 +43,7 @@ public final class FalsePredicate<T> implements Predicate<T>, Serializable {
* @since Commons Collections 3.1
* @deprecated use {@link #falsePredicate()} instead.
*/
@Deprecated
public static <T> Predicate<T> getInstance() {
return FalsePredicate.<T>falsePredicate();
}