You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2004/05/08 01:30:33 UTC
cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections/map LazyMap.java
scolebourne 2004/05/07 16:30:33
Modified: collections/src/java/org/apache/commons/collections/map
LazyMap.java
Log:
Change to FactoryTransformer to avoid indirect references via TransformerUtils
Revision Changes Path
1.7 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/map/LazyMap.java
Index: LazyMap.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/map/LazyMap.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- LazyMap.java 9 Apr 2004 10:36:01 -0000 1.6
+++ LazyMap.java 7 May 2004 23:30:33 -0000 1.7
@@ -23,7 +23,7 @@
import org.apache.commons.collections.Factory;
import org.apache.commons.collections.Transformer;
-import org.apache.commons.collections.TransformerUtils;
+import org.apache.commons.collections.functors.FactoryTransformer;
/**
* Decorates another <code>Map</code> to create objects in the map on demand.
@@ -100,7 +100,7 @@
if (factory == null) {
throw new IllegalArgumentException("Factory must not be null");
}
- this.factory = TransformerUtils.asTransformer(factory);
+ this.factory = FactoryTransformer.getInstance(factory);
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org