< prev index next >

src/java.base/share/classes/java/time/LocalTime.java

Print this page

        

*** 211,220 **** --- 211,221 ---- static final long NANOS_PER_DAY = NANOS_PER_HOUR * HOURS_PER_DAY; /** * Serialization version. */ + @java.io.Serial private static final long serialVersionUID = 6414437269572265201L; /** * The hour. */
*** 1672,1691 **** --- 1673,1694 ---- * } * </pre> * * @return the instance of {@code Ser}, not null */ + @java.io.Serial private Object writeReplace() { return new Ser(Ser.LOCAL_TIME_TYPE, this); } /** * Defend against malicious streams. * * @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"); } void writeExternal(DataOutput out) throws IOException {
< prev index next >