--- jsr166/src/main/java/util/PriorityQueue.java 2019/05/22 17:36:58 1.131 +++ jsr166/src/main/java/util/PriorityQueue.java 2019/10/10 16:53:08 1.133 @@ -87,6 +87,7 @@ import jdk.internal.util.ArraysSupport; public class PriorityQueue extends AbstractQueue implements java.io.Serializable { + // OPENJDK @java.io.Serial private static final long serialVersionUID = -7720805057305804111L; private static final int DEFAULT_INITIAL_CAPACITY = 11; @@ -110,6 +111,7 @@ public class PriorityQueue extends Ab * The comparator, or null if priority queue uses elements' * natural ordering. */ + @SuppressWarnings("serial") // Conditionally serializable private final Comparator comparator; /** @@ -755,6 +757,7 @@ public class PriorityQueue extends Ab * emitted (int), followed by all of its elements * (each an {@code Object}) in the proper order. */ + // OPENJDK @java.io.Serial private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException { // Write out element count, and any hidden stuff @@ -778,6 +781,7 @@ public class PriorityQueue extends Ab * could not be found * @throws java.io.IOException if an I/O error occurs */ + // OPENJDK @java.io.Serial private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException { // Read in size, and any hidden stuff