harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From py...@apache.org
Subject svn commit: r427432 - in /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util: AbstractCollection.java AbstractMap.java
Date Tue, 01 Aug 2006 03:40:01 GMT
Author: pyang
Date: Mon Jul 31 20:40:01 2006
New Revision: 427432

URL: http://svn.apache.org/viewvc?rev=427432&view=rev
Log:
Fix for HARMONY-1013 ([classlib][luni]Javadoc for AbstractMap.entrySet() is missing)

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/AbstractCollection.java
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/AbstractMap.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/AbstractCollection.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/AbstractCollection.java?rev=427432&r1=427431&r2=427432&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/AbstractCollection.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/AbstractCollection.java
Mon Jul 31 20:40:01 2006
@@ -357,10 +357,10 @@
 			if (next != this) {
 				buffer.append(next);
 			} else {
-				buffer.append("(this Collection)");
+				buffer.append("(this Collection)"); //$NON-NLS-1$
 			}
             if(it.hasNext()) {
-                buffer.append(", ");
+                buffer.append(", "); //$NON-NLS-1$
             }
 		}
 		buffer.append(']');

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/AbstractMap.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/AbstractMap.java?rev=427432&r1=427431&r2=427432&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/AbstractMap.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/AbstractMap.java
Mon Jul 31 20:40:01 2006
@@ -99,6 +99,16 @@
         return false;
     }
 
+    /**
+     * Answers a set view of the mappings contained in this map. Each element in
+     * this set is a Map.Entry. The set is backed by the map so changes to one
+     * are reflected by the other. (If the map is modified while an iteration
+     * over the set is in progress, the results of the iteration are undefined.)
+     * The set supports remove, removeAll, retainAll and clear operations, and
+     * it does not support add or addAll operations.
+     * 
+     * @return a set of the mappings contained in this map
+     */
     public abstract Set<Map.Entry<K, V>> entrySet();
 
     /**
@@ -346,17 +356,17 @@
             if (key != this) {
                 buffer.append(key);
             } else {
-                buffer.append("(this Map)");
+                buffer.append("(this Map)"); //$NON-NLS-1$
             }
             buffer.append('=');
             Object value = entry.getValue();
             if (value != this) {
                 buffer.append(value);
             } else {
-                buffer.append("(this Map)");
+                buffer.append("(this Map)"); //$NON-NLS-1$
             }
             if(it.hasNext()) {
-                buffer.append(", ");
+                buffer.append(", "); //$NON-NLS-1$
             }
         }
         buffer.append('}');



Mime
View raw message