src/java.base/share/classes/java/time/chrono/Ser.java
changeset 57956 e0b8b019d2f5
parent 52078 4a63197816ce
child 58362 628c12967b02
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
    92 final class Ser implements Externalizable {
    92 final class Ser implements Externalizable {
    93 
    93 
    94     /**
    94     /**
    95      * Serialization version.
    95      * Serialization version.
    96      */
    96      */
       
    97     @java.io.Serial
    97     private static final long serialVersionUID = -6103370247208168577L;
    98     private static final long serialVersionUID = -6103370247208168577L;
    98 
    99 
    99     static final byte CHRONO_TYPE = 1;
   100     static final byte CHRONO_TYPE = 1;
   100     static final byte CHRONO_LOCAL_DATE_TIME_TYPE = 2;
   101     static final byte CHRONO_LOCAL_DATE_TIME_TYPE = 2;
   101     static final byte CHRONO_ZONE_DATE_TIME_TYPE = 3;
   102     static final byte CHRONO_ZONE_DATE_TIME_TYPE = 3;
   247     /**
   248     /**
   248      * Returns the object that will replace this one.
   249      * Returns the object that will replace this one.
   249      *
   250      *
   250      * @return the read object, should never be null
   251      * @return the read object, should never be null
   251      */
   252      */
       
   253     @java.io.Serial
   252     private Object readResolve() {
   254     private Object readResolve() {
   253          return object;
   255          return object;
   254     }
   256     }
   255 
   257 
   256 }
   258 }