< prev index next >
src/java.base/share/classes/java/time/OffsetTime.java
Print this page
*** 136,145 ****
--- 136,146 ----
public static final OffsetTime MAX = LocalTime.MAX.atOffset(ZoneOffset.MIN);
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = 7264499704384272492L;
/**
* The local date-time.
*/
*** 1408,1427 ****
--- 1409,1430 ----
* // the <a href="{@docRoot}/serialized-form.html#java.time.ZoneOffset">offset</a> excluding the one byte header
* </pre>
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.OFFSET_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(ObjectOutput out) throws IOException {
< prev index next >