--- old/src/java.base/share/classes/java/time/LocalDate.java 2019-08-27 17:28:28.118324386 -0700 +++ new/src/java.base/share/classes/java/time/LocalDate.java 2019-08-27 17:28:27.930324386 -0700 @@ -157,6 +157,7 @@ /** * Serialization version. */ + @java.io.Serial private static final long serialVersionUID = 2942565459149668126L; /** * The number of days in a 400 year cycle. @@ -2200,6 +2201,7 @@ * * @return the instance of {@code Ser}, not null */ + @java.io.Serial private Object writeReplace() { return new Ser(Ser.LOCAL_DATE_TYPE, this); } @@ -2210,6 +2212,7 @@ * @param s the stream to read * @throws InvalidObjectException always */ + @java.io.Serial private void readObject(ObjectInputStream s) throws InvalidObjectException { throw new InvalidObjectException("Deserialization via serialization delegate"); }