[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.63, Tue Mar 7 07:11:39 2006 UTC revision 1.64, Sun Mar 19 01:00:40 2006 UTC
# Line 688  Line 688 
688          // Write out array length, for compatibility with 1.5 version          // Write out array length, for compatibility with 1.5 version
689          s.writeInt(Math.max(2, size + 1));          s.writeInt(Math.max(2, size + 1));
690    
691          // Write out all elements in the proper order.          // Write out all elements in the "proper order".
692          for (int i = 0; i < size; i++)          for (int i = 0; i < size; i++)
693              s.writeObject(queue[i]);              s.writeObject(queue[i]);
694      }      }
# Line 709  Line 709 
709    
710          queue = new Object[size];          queue = new Object[size];
711    
712          // Read in all elements in the proper order.          // Read in all elements.
713          for (int i = 0; i < size; i++)          for (int i = 0; i < size; i++)
714              queue[i] = s.readObject();              queue[i] = s.readObject();
715    
716            // Elements are guaranteed to be in "proper order", but the
717            // spec has never explained what that might be.
718            heapify();
719      }      }
720  }  }

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8