--- old/src/java.base/share/classes/java/util/TreeSet.java 2019-08-27 17:29:15.006324386 -0700 +++ new/src/java.base/share/classes/java/util/TreeSet.java 2019-08-27 17:29:14.822324386 -0700 @@ -494,6 +494,7 @@ * set's Comparator, or by the elements' natural ordering if * the set has no Comparator). */ + @java.io.Serial private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException { // Write out any hidden stuff @@ -514,6 +515,7 @@ * Reconstitute the {@code TreeSet} instance from a stream (that is, * deserialize it). */ + @java.io.Serial private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException { // Read in any hidden stuff @@ -556,5 +558,6 @@ return TreeMap.keySpliteratorFor(m); } + @java.io.Serial private static final long serialVersionUID = -2479143000061671589L; }