Use the enhanced for-loop.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4943 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2008-02-21 02:30:26 +00:00
parent 5cbc654b13
commit f52f686f19
@@ -22,7 +22,6 @@
package com.threerings.util; package com.threerings.util;
import java.io.IOException; import java.io.IOException;
import java.util.Iterator;
import java.util.Map; import java.util.Map;
import java.util.HashMap; import java.util.HashMap;
@@ -65,8 +64,7 @@ public class StreamableHashMap<K,V> extends HashMap<K,V>
{ {
int ecount = size(); int ecount = size();
out.writeInt(ecount); out.writeInt(ecount);
for (Iterator<Map.Entry<K,V>> iter = entrySet().iterator(); iter.hasNext(); ) { for (Map.Entry<K,V> entry : entrySet()) {
Map.Entry<K,V> entry = iter.next();
out.writeObject(entry.getKey()); out.writeObject(entry.getKey());
out.writeObject(entry.getValue()); out.writeObject(entry.getValue());
} }