< prev index next >
src/java.base/share/classes/java/time/chrono/MinguoChronology.java
Print this page
*** 112,121 ****
--- 112,122 ----
public static final MinguoChronology INSTANCE = new MinguoChronology();
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = 1039765215346859963L;
/**
* The difference in years between ISO and Minguo.
*/
static final int YEARS_DIFFERENCE = 1911;
*** 345,363 ****
--- 346,366 ----
* </pre>
*
* @return the instance of {@code Ser}, not null
*/
@Override
+ @java.io.Serial
Object writeReplace() {
return super.writeReplace();
}
/**
* 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");
}
}
< prev index next >