You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2009/09/15 20:11:18 UTC
svn commit: r815431 - in
/commons/proper/collections/trunk/src/java/org/apache/commons/collections:
PredicateUtils.java functors/AllPredicate.java functors/FalsePredicate.java
Author: sebb
Date: Tue Sep 15 18:11:17 2009
New Revision: 815431
URL: http://svn.apache.org/viewvc?rev=815431&view=rev
Log:
Add missing @Deprecated annotations
Modified:
commons/proper/collections/trunk/src/java/org/apache/commons/collections/PredicateUtils.java
commons/proper/collections/trunk/src/java/org/apache/commons/collections/functors/AllPredicate.java
commons/proper/collections/trunk/src/java/org/apache/commons/collections/functors/FalsePredicate.java
Modified: commons/proper/collections/trunk/src/java/org/apache/commons/collections/PredicateUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/java/org/apache/commons/collections/PredicateUtils.java?rev=815431&r1=815430&r2=815431&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/java/org/apache/commons/collections/PredicateUtils.java (original)
+++ commons/proper/collections/trunk/src/java/org/apache/commons/collections/PredicateUtils.java Tue Sep 15 18:11:17 2009
@@ -117,6 +117,7 @@
* @return the predicate
* @deprecated use {@link FalsePredicate#()} instead.
*/
+ @Deprecated
public static <T> Predicate<T> falsePredicate() {
return FalsePredicate.<T>getInstance();
}
Modified: commons/proper/collections/trunk/src/java/org/apache/commons/collections/functors/AllPredicate.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/java/org/apache/commons/collections/functors/AllPredicate.java?rev=815431&r1=815430&r2=815431&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/java/org/apache/commons/collections/functors/AllPredicate.java (original)
+++ commons/proper/collections/trunk/src/java/org/apache/commons/collections/functors/AllPredicate.java Tue Sep 15 18:11:17 2009
@@ -60,6 +60,7 @@
* @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 @@
* @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);
}
Modified: commons/proper/collections/trunk/src/java/org/apache/commons/collections/functors/FalsePredicate.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/java/org/apache/commons/collections/functors/FalsePredicate.java?rev=815431&r1=815430&r2=815431&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/java/org/apache/commons/collections/functors/FalsePredicate.java (original)
+++ commons/proper/collections/trunk/src/java/org/apache/commons/collections/functors/FalsePredicate.java Tue Sep 15 18:11:17 2009
@@ -43,6 +43,7 @@
* @since Commons Collections 3.1
* @deprecated use {@link #falsePredicate()} instead.
*/
+ @Deprecated
public static <T> Predicate<T> getInstance() {
return FalsePredicate.<T>falsePredicate();
}