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

Comparing jsr166/src/main/java/util/PriorityQueue.java (file contents):
Revision 1.131 by jsr166, Wed May 22 17:36:58 2019 UTC vs.
Revision 1.133 by jsr166, Thu Oct 10 16:53:08 2019 UTC

# Line 87 | Line 87 | import jdk.internal.util.ArraysSupport;
87   public class PriorityQueue<E> extends AbstractQueue<E>
88      implements java.io.Serializable {
89  
90 +    // OPENJDK @java.io.Serial
91      private static final long serialVersionUID = -7720805057305804111L;
92  
93      private static final int DEFAULT_INITIAL_CAPACITY = 11;
# Line 110 | Line 111 | public class PriorityQueue<E> extends Ab
111       * The comparator, or null if priority queue uses elements'
112       * natural ordering.
113       */
114 +    @SuppressWarnings("serial") // Conditionally serializable
115      private final Comparator<? super E> comparator;
116  
117      /**
# Line 755 | Line 757 | public class PriorityQueue<E> extends Ab
757       *             emitted (int), followed by all of its elements
758       *             (each an {@code Object}) in the proper order.
759       */
760 +    // OPENJDK @java.io.Serial
761      private void writeObject(java.io.ObjectOutputStream s)
762          throws java.io.IOException {
763          // Write out element count, and any hidden stuff
# Line 778 | Line 781 | public class PriorityQueue<E> extends Ab
781       *         could not be found
782       * @throws java.io.IOException if an I/O error occurs
783       */
784 +    // OPENJDK @java.io.Serial
785      private void readObject(java.io.ObjectInputStream s)
786          throws java.io.IOException, ClassNotFoundException {
787          // Read in size, and any hidden stuff

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines