--- old/src/java.base/share/classes/java/util/HashMap.java 2019-08-27 17:28:57.418324386 -0700 +++ new/src/java.base/share/classes/java/util/HashMap.java 2019-08-27 17:28:57.254324386 -0700 @@ -138,6 +138,7 @@ public class HashMap extends AbstractMap implements Map, Cloneable, Serializable { + @java.io.Serial private static final long serialVersionUID = 362498820763181265L; /* @@ -1489,6 +1490,7 @@ * for each key-value mapping. The key-value mappings are * emitted in no particular order. */ + @java.io.Serial private void writeObject(java.io.ObjectOutputStream s) throws IOException { int buckets = capacity(); @@ -1506,6 +1508,7 @@ * could not be found * @throws IOException if an I/O error occurs */ + @java.io.Serial private void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the threshold (ignored), loadfactor, and any hidden stuff