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:
parent
40a3bb8221
commit
f260eb5dc4
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue