src/java.base/share/classes/java/time/ZoneId.java
changeset 57956 e0b8b019d2f5
parent 54206 003cc64366da
child 58288 48e480e56aad
equal deleted inserted replaced
57955:18863bf3501f 57956:e0b8b019d2f5
   252         entry("HST", "-10:00")
   252         entry("HST", "-10:00")
   253     );
   253     );
   254     /**
   254     /**
   255      * Serialization version.
   255      * Serialization version.
   256      */
   256      */
       
   257     @java.io.Serial
   257     private static final long serialVersionUID = 8352817235686L;
   258     private static final long serialVersionUID = 8352817235686L;
   258 
   259 
   259     //-----------------------------------------------------------------------
   260     //-----------------------------------------------------------------------
   260     /**
   261     /**
   261      * Gets the system default time-zone.
   262      * Gets the system default time-zone.
   622      * Defend against malicious streams.
   623      * Defend against malicious streams.
   623      *
   624      *
   624      * @param s the stream to read
   625      * @param s the stream to read
   625      * @throws InvalidObjectException always
   626      * @throws InvalidObjectException always
   626      */
   627      */
       
   628     @java.io.Serial
   627     private void readObject(ObjectInputStream s) throws InvalidObjectException {
   629     private void readObject(ObjectInputStream s) throws InvalidObjectException {
   628         throw new InvalidObjectException("Deserialization via serialization delegate");
   630         throw new InvalidObjectException("Deserialization via serialization delegate");
   629     }
   631     }
   630 
   632 
   631     /**
   633     /**
   653      * ID has a valid format, but is not in the known set of region-based IDs.
   655      * ID has a valid format, but is not in the known set of region-based IDs.
   654      *
   656      *
   655      * @return the instance of {@code Ser}, not null
   657      * @return the instance of {@code Ser}, not null
   656      */
   658      */
   657     // this is here for serialization Javadoc
   659     // this is here for serialization Javadoc
       
   660     @java.io.Serial
   658     private Object writeReplace() {
   661     private Object writeReplace() {
   659         return new Ser(Ser.ZONE_REGION_TYPE, this);
   662         return new Ser(Ser.ZONE_REGION_TYPE, this);
   660     }
   663     }
   661 
   664 
   662     abstract void write(DataOutput out) throws IOException;
   665     abstract void write(DataOutput out) throws IOException;