Genericized StreamableArrayList

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4196 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Mark Johnson
2006-06-17 00:31:25 +00:00
parent b378bda604
commit d2b9e351ba
@@ -34,7 +34,7 @@ import com.threerings.io.Streamable;
* *
* @see Streamable * @see Streamable
*/ */
public class StreamableArrayList extends ArrayList public class StreamableArrayList<E> extends ArrayList<E>
implements Streamable implements Streamable
{ {
/** /**
@@ -59,7 +59,7 @@ public class StreamableArrayList extends ArrayList
int ecount = in.readInt(); int ecount = in.readInt();
ensureCapacity(ecount); ensureCapacity(ecount);
for (int ii = 0; ii < ecount; ii++) { for (int ii = 0; ii < ecount; ii++) {
add(in.readObject()); add((E)in.readObject());
} }
} }
} }