[cvs] / jsr166 / src / main / java / util / PriorityQueue.java Repository:
ViewVC logotype

Diff of /jsr166/src/main/java/util/PriorityQueue.java

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

revision 1.38, Mon Sep 1 12:23:28 2003 UTC revision 1.39, Sun Sep 7 15:06:19 2003 UTC
# Line 657  Line 657 
657          s.writeInt(queue.length);          s.writeInt(queue.length);
658    
659          // Write out all elements in the proper order.          // Write out all elements in the proper order.
660          for (int i=0; i<size; i++)          for (int i=1; i<=size; i++)
661              s.writeObject(queue[i]);              s.writeObject(queue[i]);
662      }      }
663    
# Line 676  Line 676 
676          queue = new Object[arrayLength];          queue = new Object[arrayLength];
677    
678          // Read in all elements in the proper order.          // Read in all elements in the proper order.
679          for (int i=0; i<size; i++)          for (int i=1; i<=size; i++)
680              queue[i] = (E) s.readObject();              queue[i] = (E) s.readObject();
681      }      }
682    

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8