ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/jdk8/java/util/PriorityQueue.java
(Generate patch)

Comparing jsr166/src/jdk8/java/util/PriorityQueue.java (file contents):
Revision 1.1 by jsr166, Sat Mar 26 06:22:49 2016 UTC vs.
Revision 1.3 by jsr166, Sat Oct 15 01:47:29 2016 UTC

# Line 337 | Line 337 | public class PriorityQueue<E> extends Ab
337          int i = size;
338          if (i >= queue.length)
339              grow(i + 1);
340 +        siftUp(i, e);
341          size = i + 1;
341        if (i == 0)
342            queue[0] = e;
343        else
344            siftUp(i, e);
342          return true;
343      }
344  
# Line 752 | Line 749 | public class PriorityQueue<E> extends Ab
749      /**
750       * Saves this queue to a stream (that is, serializes it).
751       *
752 +     * @param s the stream
753 +     * @throws java.io.IOException if an I/O error occurs
754       * @serialData The length of the array backing the instance is
755       *             emitted (int), followed by all of its elements
756       *             (each an {@code Object}) in the proper order.
758     * @param s the stream
759     * @throws java.io.IOException if an I/O error occurs
757       */
758      private void writeObject(java.io.ObjectOutputStream s)
759          throws java.io.IOException {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines