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 2006/07/14 01:09:11 UTC

svn commit: r421727 - in /jakarta/commons/proper/collections/trunk: RELEASE-NOTES.html src/java/org/apache/commons/collections/map/DefaultedMap.java

Author: scolebourne
Date: Thu Jul 13 16:09:11 2006
New Revision: 421727

URL: http://svn.apache.org/viewvc?rev=421727&view=rev
Log:
COLLECTIONS-215 - DefaultedMap clarify javadoc

Modified:
    jakarta/commons/proper/collections/trunk/RELEASE-NOTES.html
    jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/map/DefaultedMap.java

Modified: jakarta/commons/proper/collections/trunk/RELEASE-NOTES.html
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/collections/trunk/RELEASE-NOTES.html?rev=421727&r1=421726&r2=421727&view=diff
==============================================================================
--- jakarta/commons/proper/collections/trunk/RELEASE-NOTES.html (original)
+++ jakarta/commons/proper/collections/trunk/RELEASE-NOTES.html Thu Jul 13 16:09:11 2006
@@ -60,6 +60,8 @@
 <center><h3>JAVADOC</h3></center>
 <ul>
 <li>IteratorChain - Clarify constructor behaviour</li>
+<li>MuliKey - Spelling [COLLECTIONS-216]</li>
+<li>DefaultedMap - Clarify transformer behaviour [COLLECTIONS-215]</li>
 </ul>
 </body>
 </html>

Modified: jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/map/DefaultedMap.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/map/DefaultedMap.java?rev=421727&r1=421726&r2=421727&view=diff
==============================================================================
--- jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/map/DefaultedMap.java (original)
+++ jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/map/DefaultedMap.java Thu Jul 13 16:09:11 2006
@@ -1,5 +1,5 @@
 /*
- *  Copyright 2005 The Apache Software Foundation
+ *  Copyright 2005-2006 The Apache Software Foundation
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -96,7 +96,7 @@
      * The result will be returned as the result of the map get(key) method.
      * 
      * @param map  the map to decorate, must not be null
-     * @param factory  the factory to use, must not be null
+     * @param factory  the factory to use to create entries, must not be null
      * @throws IllegalArgumentException if map or factory is null
      */
     public static Map decorate(Map map, Factory factory) {
@@ -114,14 +114,14 @@
      * will be returned as the result of the map get(key) method.
      * 
      * @param map  the map to decorate, must not be null
-     * @param factory  the factory to use, must not be null
+     * @param transformer  the transformer to use as a factory to create entries, must not be null
      * @throws IllegalArgumentException if map or factory is null
      */
-    public static Map decorate(Map map, Transformer factory) {
-        if (factory == null) {
+    public static Map decorate(Map map, Transformer transformer) {
+        if (transformer == null) {
            throw new IllegalArgumentException("Transformer must not be null");
        }
-       return new DefaultedMap(map, factory);
+       return new DefaultedMap(map, transformer);
     }
 
     //-----------------------------------------------------------------------



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