/[classpath]/classpath/java/util/LinkedList.java
ViewVC logotype

Diff of /classpath/java/util/LinkedList.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by ericb, Mon Oct 22 05:48:01 2001 UTC revision 1.16 by ericb, Thu Oct 25 07:34:19 2001 UTC
# Line 703  public class LinkedList extends Abstract Line 703  public class LinkedList extends Abstract
703     */     */
704    private void writeObject(ObjectOutputStream s) throws IOException    private void writeObject(ObjectOutputStream s) throws IOException
705    {    {
706        s.defaultWriteObject();
707      s.writeInt(size);      s.writeInt(size);
708      Entry e = first;      Entry e = first;
709      while (e != null)      while (e != null)
# Line 724  public class LinkedList extends Abstract Line 725  public class LinkedList extends Abstract
725    private void readObject(ObjectInputStream s)    private void readObject(ObjectInputStream s)
726      throws IOException, ClassNotFoundException      throws IOException, ClassNotFoundException
727    {    {
728        s.defaultReadObject();
729      int i = s.readInt();      int i = s.readInt();
730      while (--i >= 0)      while (--i >= 0)
731        addLastEntry(new Entry(s.readObject()));        addLastEntry(new Entry(s.readObject()));

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26