You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by py...@apache.org on 2006/08/01 05:40:01 UTC
svn commit: r427432 - in
/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util:
AbstractCollection.java AbstractMap.java
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('}');