commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections/map TypedMap.java
Date Fri, 07 May 2004 23:17:13 GMT
scolebourne    2004/05/07 16:17:13

  Modified:    collections/src/java/org/apache/commons/collections/map
                        TypedMap.java
  Log:
  Change to InstanceofPredicate to avoid indirect references via PredicateUtils
  
  Revision  Changes    Path
  1.6       +4 -4      jakarta-commons/collections/src/java/org/apache/commons/collections/map/TypedMap.java
  
  Index: TypedMap.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/map/TypedMap.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TypedMap.java	9 Apr 2004 14:57:10 -0000	1.5
  +++ TypedMap.java	7 May 2004 23:17:13 -0000	1.6
  @@ -17,7 +17,7 @@
   
   import java.util.Map;
   
  -import org.apache.commons.collections.PredicateUtils;
  +import org.apache.commons.collections.functors.InstanceofPredicate;
   
   /**
    * Decorates another <code>Map</code> to validate that elements added
  @@ -52,8 +52,8 @@
       public static Map decorate(Map map, Class keyType, Class valueType) {
           return new PredicatedMap(
               map,
  -            PredicateUtils.instanceofPredicate(keyType),
  -            PredicateUtils.instanceofPredicate(valueType)
  +            InstanceofPredicate.getInstance(keyType),
  +            InstanceofPredicate.getInstance(valueType)
           );
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message