src/java.base/share/classes/java/time/chrono/HijrahChronology.java
changeset 57956 e0b8b019d2f5
parent 52078 4a63197816ce
equal deleted inserted replaced
57955:18863bf3501f 57956:e0b8b019d2f5
     1 /*
     1 /*
     2  * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   203      */
   203      */
   204     private final transient String calendarType;
   204     private final transient String calendarType;
   205     /**
   205     /**
   206      * Serialization version.
   206      * Serialization version.
   207      */
   207      */
       
   208     @java.io.Serial
   208     private static final long serialVersionUID = 3127340209035924785L;
   209     private static final long serialVersionUID = 3127340209035924785L;
   209     /**
   210     /**
   210      * Singleton instance of the Islamic Umm Al-Qura calendar of Saudi Arabia.
   211      * Singleton instance of the Islamic Umm Al-Qura calendar of Saudi Arabia.
   211      * Other Hijrah chronology variants may be available from
   212      * Other Hijrah chronology variants may be available from
   212      * {@link Chronology#getAvailableChronologies}.
   213      * {@link Chronology#getAvailableChronologies}.
  1019      * </pre>
  1020      * </pre>
  1020      *
  1021      *
  1021      * @return the instance of {@code Ser}, not null
  1022      * @return the instance of {@code Ser}, not null
  1022      */
  1023      */
  1023     @Override
  1024     @Override
       
  1025     @java.io.Serial
  1024     Object writeReplace() {
  1026     Object writeReplace() {
  1025         return super.writeReplace();
  1027         return super.writeReplace();
  1026     }
  1028     }
  1027 
  1029 
  1028     /**
  1030     /**
  1029      * Defend against malicious streams.
  1031      * Defend against malicious streams.
  1030      *
  1032      *
  1031      * @param s the stream to read
  1033      * @param s the stream to read
  1032      * @throws InvalidObjectException always
  1034      * @throws InvalidObjectException always
  1033      */
  1035      */
       
  1036     @java.io.Serial
  1034     private void readObject(ObjectInputStream s) throws InvalidObjectException {
  1037     private void readObject(ObjectInputStream s) throws InvalidObjectException {
  1035         throw new InvalidObjectException("Deserialization via serialization delegate");
  1038         throw new InvalidObjectException("Deserialization via serialization delegate");
  1036     }
  1039     }
  1037 }
  1040 }