emul/compact/src/main/java/java/util/LinkedList.java
brancharithmetic
changeset 755 5652acd48509
parent 597 ee8a922f4268
     1.1 --- a/emul/compact/src/main/java/java/util/LinkedList.java	Mon Jan 28 13:28:02 2013 +0100
     1.2 +++ b/emul/compact/src/main/java/java/util/LinkedList.java	Mon Feb 25 19:00:08 2013 +0100
     1.3 @@ -1097,42 +1097,4 @@
     1.4  
     1.5      private static final long serialVersionUID = 876323262645176354L;
     1.6  
     1.7 -    /**
     1.8 -     * Saves the state of this {@code LinkedList} instance to a stream
     1.9 -     * (that is, serializes it).
    1.10 -     *
    1.11 -     * @serialData The size of the list (the number of elements it
    1.12 -     *             contains) is emitted (int), followed by all of its
    1.13 -     *             elements (each an Object) in the proper order.
    1.14 -     */
    1.15 -    private void writeObject(java.io.ObjectOutputStream s)
    1.16 -        throws java.io.IOException {
    1.17 -        // Write out any hidden serialization magic
    1.18 -        s.defaultWriteObject();
    1.19 -
    1.20 -        // Write out size
    1.21 -        s.writeInt(size);
    1.22 -
    1.23 -        // Write out all elements in the proper order.
    1.24 -        for (Node<E> x = first; x != null; x = x.next)
    1.25 -            s.writeObject(x.item);
    1.26 -    }
    1.27 -
    1.28 -    /**
    1.29 -     * Reconstitutes this {@code LinkedList} instance from a stream
    1.30 -     * (that is, deserializes it).
    1.31 -     */
    1.32 -    @SuppressWarnings("unchecked")
    1.33 -    private void readObject(java.io.ObjectInputStream s)
    1.34 -        throws java.io.IOException, ClassNotFoundException {
    1.35 -        // Read in any hidden serialization magic
    1.36 -        s.defaultReadObject();
    1.37 -
    1.38 -        // Read in size
    1.39 -        int size = s.readInt();
    1.40 -
    1.41 -        // Read in all elements in the proper order.
    1.42 -        for (int i = 0; i < size; i++)
    1.43 -            linkLast((E)s.readObject());
    1.44 -    }
    1.45  }