--- old/src/java.base/share/classes/java/time/OffsetDateTime.java 2019-08-27 17:28:30.334324386 -0700 +++ new/src/java.base/share/classes/java/time/OffsetDateTime.java 2019-08-27 17:28:30.158324386 -0700 @@ -184,6 +184,7 @@ /** * Serialization version. */ + @java.io.Serial private static final long serialVersionUID = 2287754244819255394L; /** @@ -1931,6 +1932,7 @@ * * @return the instance of {@code Ser}, not null */ + @java.io.Serial private Object writeReplace() { return new Ser(Ser.OFFSET_DATE_TIME_TYPE, this); } @@ -1941,6 +1943,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"); }