Some type safety, redundant cast removal, and other code hygiene.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4879 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -66,7 +66,7 @@ public class StreamableHashMap<K,V> extends HashMap<K,V>
|
||||
int ecount = size();
|
||||
out.writeInt(ecount);
|
||||
for (Iterator<Map.Entry<K,V>> iter = entrySet().iterator(); iter.hasNext(); ) {
|
||||
Map.Entry<K,V> entry = (Map.Entry<K,V>) iter.next();
|
||||
Map.Entry<K,V> entry = iter.next();
|
||||
out.writeObject(entry.getKey());
|
||||
out.writeObject(entry.getValue());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user