diff -r ee8a922f4268 -r 5652acd48509 emul/compact/src/main/java/java/util/LinkedList.java --- a/emul/compact/src/main/java/java/util/LinkedList.java Mon Jan 28 13:28:02 2013 +0100 +++ b/emul/compact/src/main/java/java/util/LinkedList.java Mon Feb 25 19:00:08 2013 +0100 @@ -1097,42 +1097,4 @@ private static final long serialVersionUID = 876323262645176354L; - /** - * Saves the state of this {@code LinkedList} instance to a stream - * (that is, serializes it). - * - * @serialData The size of the list (the number of elements it - * contains) is emitted (int), followed by all of its - * elements (each an Object) in the proper order. - */ - private void writeObject(java.io.ObjectOutputStream s) - throws java.io.IOException { - // Write out any hidden serialization magic - s.defaultWriteObject(); - - // Write out size - s.writeInt(size); - - // Write out all elements in the proper order. - for (Node x = first; x != null; x = x.next) - s.writeObject(x.item); - } - - /** - * Reconstitutes this {@code LinkedList} instance from a stream - * (that is, deserializes it). - */ - @SuppressWarnings("unchecked") - private void readObject(java.io.ObjectInputStream s) - throws java.io.IOException, ClassNotFoundException { - // Read in any hidden serialization magic - s.defaultReadObject(); - - // Read in size - int size = s.readInt(); - - // Read in all elements in the proper order. - for (int i = 0; i < size; i++) - linkLast((E)s.readObject()); - } }