src/java.base/share/classes/java/time/chrono/JapaneseChronology.java
changeset 57956 e0b8b019d2f5
parent 54360 6a4abdb6749c
equal deleted inserted replaced
57955:18863bf3501f 57956:e0b8b019d2f5
   133     public static final JapaneseChronology INSTANCE = new JapaneseChronology();
   133     public static final JapaneseChronology INSTANCE = new JapaneseChronology();
   134 
   134 
   135     /**
   135     /**
   136      * Serialization version.
   136      * Serialization version.
   137      */
   137      */
       
   138     @java.io.Serial
   138     private static final long serialVersionUID = 459996390165777884L;
   139     private static final long serialVersionUID = 459996390165777884L;
   139 
   140 
   140     //-----------------------------------------------------------------------
   141     //-----------------------------------------------------------------------
   141     /**
   142     /**
   142      * Restricted constructor.
   143      * Restricted constructor.
   514      * </pre>
   515      * </pre>
   515      *
   516      *
   516      * @return the instance of {@code Ser}, not null
   517      * @return the instance of {@code Ser}, not null
   517      */
   518      */
   518     @Override
   519     @Override
       
   520     @java.io.Serial
   519     Object writeReplace() {
   521     Object writeReplace() {
   520         return super.writeReplace();
   522         return super.writeReplace();
   521     }
   523     }
   522 
   524 
   523     /**
   525     /**
   524      * Defend against malicious streams.
   526      * Defend against malicious streams.
   525      *
   527      *
   526      * @param s the stream to read
   528      * @param s the stream to read
   527      * @throws InvalidObjectException always
   529      * @throws InvalidObjectException always
   528      */
   530      */
       
   531     @java.io.Serial
   529     private void readObject(ObjectInputStream s) throws InvalidObjectException {
   532     private void readObject(ObjectInputStream s) throws InvalidObjectException {
   530         throw new InvalidObjectException("Deserialization via serialization delegate");
   533         throw new InvalidObjectException("Deserialization via serialization delegate");
   531     }
   534     }
   532 }
   535 }