< prev index next >

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

Print this page

        

@@ -114,10 +114,11 @@
     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,19 +383,21 @@
      * </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 >