< prev index next >

src/java.base/share/classes/java/time/chrono/ThaiBuddhistChronology.java

Print this page

        

*** 114,123 **** --- 114,124 ---- public static final ThaiBuddhistChronology INSTANCE = new ThaiBuddhistChronology(); /** * Serialization version. */ + @java.io.Serial private static final long serialVersionUID = 2775954514031616474L; /** * Containing the offset to add to the ISO year. */ static final int YEARS_DIFFERENCE = 543;
*** 382,400 **** --- 383,403 ---- * </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 >