commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skes...@apache.org
Subject svn commit: r643606 - /commons/proper/collections/branches/collections_jdk5_branch/src/java/org/apache/commons/collections/PredicateUtils.java
Date Tue, 01 Apr 2008 21:52:22 GMT
Author: skestle
Date: Tue Apr  1 14:52:12 2008
New Revision: 643606

URL: http://svn.apache.org/viewvc?rev=643606&view=rev
Log:
Fixed (another) compilation error in PredicateUtils and added method deprecations for new
call-through static constructors.

Modified:
    commons/proper/collections/branches/collections_jdk5_branch/src/java/org/apache/commons/collections/PredicateUtils.java

Modified: commons/proper/collections/branches/collections_jdk5_branch/src/java/org/apache/commons/collections/PredicateUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/branches/collections_jdk5_branch/src/java/org/apache/commons/collections/PredicateUtils.java?rev=643606&r1=643605&r2=643606&view=diff
==============================================================================
--- commons/proper/collections/branches/collections_jdk5_branch/src/java/org/apache/commons/collections/PredicateUtils.java
(original)
+++ commons/proper/collections/branches/collections_jdk5_branch/src/java/org/apache/commons/collections/PredicateUtils.java
Tue Apr  1 14:52:12 2008
@@ -105,7 +105,9 @@
      * @see org.apache.commons.collections.functors.TruePredicate
      * 
      * @return the predicate
+     * @deprecated use {@link TruePredicate#truePredicate()} instead.
      */
+    @Deprecated
     public static <T> Predicate<T> truePredicate() {
         return TruePredicate.truePredicate();
     }
@@ -276,9 +278,11 @@
      * @return the <code>all</code> predicate
      * @throws IllegalArgumentException if the predicates array is null
      * @throws IllegalArgumentException if any predicate in the array is null
+     * @deprecated use {@link AllPredicate#allPredicate(Predicate...)))} instead.
      */
+    @Deprecated
     public static <T> Predicate<T> allPredicate(Predicate<? super T>[]
predicates) {
-        return allPredicate(predicates);
+        return AllPredicate.allPredicate(predicates);
     }
 
     /**
@@ -292,9 +296,11 @@
      * @return the <code>all</code> predicate
      * @throws IllegalArgumentException if the predicates collection is null
      * @throws IllegalArgumentException if any predicate in the collection is null
+     * @deprecated use {@link AllPredicate#allPredicate(Collection))} instead.
      */
+    @Deprecated
     public static <T> Predicate<T> allPredicate(Collection<Predicate<?
super T>> predicates) {
-        return allPredicate(predicates);
+        return AllPredicate.allPredicate(predicates);
     }
 
     /**



Mime
View raw message