src/java.base/share/classes/java/time/chrono/ThaiBuddhistDate.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
   108         implements ChronoLocalDate, Serializable {
   108         implements ChronoLocalDate, Serializable {
   109 
   109 
   110     /**
   110     /**
   111      * Serialization version.
   111      * Serialization version.
   112      */
   112      */
       
   113     @java.io.Serial
   113     private static final long serialVersionUID = -8722293800195731463L;
   114     private static final long serialVersionUID = -8722293800195731463L;
   114 
   115 
   115     /**
   116     /**
   116      * The underlying date.
   117      * The underlying date.
   117      */
   118      */
   479      * Defend against malicious streams.
   480      * Defend against malicious streams.
   480      *
   481      *
   481      * @param s the stream to read
   482      * @param s the stream to read
   482      * @throws InvalidObjectException always
   483      * @throws InvalidObjectException always
   483      */
   484      */
       
   485     @java.io.Serial
   484     private void readObject(ObjectInputStream s) throws InvalidObjectException {
   486     private void readObject(ObjectInputStream s) throws InvalidObjectException {
   485         throw new InvalidObjectException("Deserialization via serialization delegate");
   487         throw new InvalidObjectException("Deserialization via serialization delegate");
   486     }
   488     }
   487 
   489 
   488     /**
   490     /**
   496      *  out.writeByte(get(DAY_OF_MONTH));
   498      *  out.writeByte(get(DAY_OF_MONTH));
   497      * </pre>
   499      * </pre>
   498      *
   500      *
   499      * @return the instance of {@code Ser}, not null
   501      * @return the instance of {@code Ser}, not null
   500      */
   502      */
       
   503     @java.io.Serial
   501     private Object writeReplace() {
   504     private Object writeReplace() {
   502         return new Ser(Ser.THAIBUDDHIST_DATE_TYPE, this);
   505         return new Ser(Ser.THAIBUDDHIST_DATE_TYPE, this);
   503     }
   506     }
   504 
   507 
   505     void writeExternal(DataOutput out) throws IOException {
   508     void writeExternal(DataOutput out) throws IOException {