You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2007/12/22 21:40:17 UTC
svn commit: r606488 -
/xerces/java/trunk/src/org/apache/xerces/util/AugmentationsImpl.java
Author: mrglavas
Date: Sat Dec 22 12:40:16 2007
New Revision: 606488
URL: http://svn.apache.org/viewvc?rev=606488&view=rev
Log:
Minor improvement to LargeContainer.toString().
Modified:
xerces/java/trunk/src/org/apache/xerces/util/AugmentationsImpl.java
Modified: xerces/java/trunk/src/org/apache/xerces/util/AugmentationsImpl.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/util/AugmentationsImpl.java?rev=606488&r1=606487&r2=606488&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/util/AugmentationsImpl.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/util/AugmentationsImpl.java Sat Dec 22 12:40:16 2007
@@ -20,6 +20,8 @@
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
import org.apache.xerces.xni.Augmentations;
@@ -273,16 +275,14 @@
public String toString() {
StringBuffer buff = new StringBuffer();
buff.append("LargeContainer");
- Enumeration keys = Collections.enumeration(fAugmentations.keySet());
-
- while (keys.hasMoreElements()) {
- Object key = keys.nextElement();
+ Iterator entries = fAugmentations.entrySet().iterator();
+ while (entries.hasNext()) {
+ Map.Entry entry = (Map.Entry) entries.next();
buff.append("\nkey == ");
- buff.append(key);
+ buff.append(entry.getKey());
buff.append("; value == ");
- buff.append(fAugmentations.get(key));
+ buff.append(entry.getValue());
}
-
return buff.toString();
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org