jdk/src/share/classes/java/time/chrono/MinguoChronology.java
changeset 22081 86eb26ff8f2b
parent 20873 e91d5b1cb8e6
child 22566 4ebe53dd7814
equal deleted inserted replaced
22080:18a23ba7dd38 22081:86eb26ff8f2b
    55  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    55  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    56  */
    56  */
    57 package java.time.chrono;
    57 package java.time.chrono;
    58 
    58 
    59 import java.io.InvalidObjectException;
    59 import java.io.InvalidObjectException;
    60 import java.io.ObjectStreamException;
       
    61 import static java.time.temporal.ChronoField.PROLEPTIC_MONTH;
    60 import static java.time.temporal.ChronoField.PROLEPTIC_MONTH;
    62 import static java.time.temporal.ChronoField.YEAR;
    61 import static java.time.temporal.ChronoField.YEAR;
    63 
    62 
       
    63 import java.io.ObjectInputStream;
    64 import java.io.Serializable;
    64 import java.io.Serializable;
    65 import java.time.Clock;
    65 import java.time.Clock;
    66 import java.time.DateTimeException;
    66 import java.time.DateTimeException;
    67 import java.time.Instant;
    67 import java.time.Instant;
    68 import java.time.LocalDate;
    68 import java.time.LocalDate;
   352         return super.writeReplace();
   352         return super.writeReplace();
   353     }
   353     }
   354 
   354 
   355     /**
   355     /**
   356      * Defend against malicious streams.
   356      * Defend against malicious streams.
   357      * @return never
   357      *
   358      * @throws InvalidObjectException always
   358      * @throws InvalidObjectException always
   359      */
   359      */
   360     private Object readResolve() throws InvalidObjectException {
   360     private void readObject(ObjectInputStream s) throws InvalidObjectException {
   361         throw new InvalidObjectException("Deserialization via serialization delegate");
   361         throw new InvalidObjectException("Deserialization via serialization delegate");
   362     }
   362     }
   363 }
   363 }