Type safety patrol.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4243 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2006-07-05 00:50:28 +00:00
parent 40d0df6dfa
commit a89473d1b5
7 changed files with 31 additions and 25 deletions
@@ -80,7 +80,9 @@ public class StreamableHashMap<K,V> extends HashMap<K,V>
{
int ecount = in.readInt();
for (int ii = 0; ii < ecount; ii++) {
put((K)in.readObject(), (V)in.readObject());
@SuppressWarnings("unchecked") K key = (K)in.readObject();
@SuppressWarnings("unchecked") V value = (V)in.readObject();
put(key, value);
}
}
}