--- old/src/java.base/share/classes/java/util/PriorityQueue.java 2019-08-27 17:29:09.366324386 -0700 +++ new/src/java.base/share/classes/java/util/PriorityQueue.java 2019-08-27 17:29:09.194324386 -0700 @@ -87,6 +87,7 @@ public class PriorityQueue extends AbstractQueue implements java.io.Serializable { + @java.io.Serial private static final long serialVersionUID = -7720805057305804111L; private static final int DEFAULT_INITIAL_CAPACITY = 11; @@ -755,6 +756,7 @@ * emitted (int), followed by all of its elements * (each an {@code Object}) in the proper order. */ + @java.io.Serial private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException { // Write out element count, and any hidden stuff @@ -778,6 +780,7 @@ * could not be found * @throws java.io.IOException if an I/O error occurs */ + @java.io.Serial private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException { // Read in size, and any hidden stuff