src/java.base/share/classes/java/util/Calendar.java
changeset 57956 e0b8b019d2f5
parent 57549 bfe9696bf57f
child 58242 94bb65cb37d3
equal deleted inserted replaced
57955:18863bf3501f 57956:e0b8b019d2f5
  1003      * @since 1.1.6
  1003      * @since 1.1.6
  1004      */
  1004      */
  1005     private int             serialVersionOnStream = currentSerialVersion;
  1005     private int             serialVersionOnStream = currentSerialVersion;
  1006 
  1006 
  1007     // Proclaim serialization compatibility with JDK 1.1
  1007     // Proclaim serialization compatibility with JDK 1.1
       
  1008     @java.io.Serial
  1008     static final long       serialVersionUID = -1807547505821590642L;
  1009     static final long       serialVersionUID = -1807547505821590642L;
  1009 
  1010 
  1010     // Mask values for calendar fields
  1011     // Mask values for calendar fields
  1011     @SuppressWarnings("PointlessBitwiseExpression")
  1012     @SuppressWarnings("PointlessBitwiseExpression")
  1012     static final int ERA_MASK           = (1 << ERA);
  1013     static final int ERA_MASK           = (1 << ERA);
  3524      * shipped. To be compatible with JDK 1.1, we will always have to write out
  3525      * shipped. To be compatible with JDK 1.1, we will always have to write out
  3525      * the field values and state flags.  However, <code>nextStamp</code> can be
  3526      * the field values and state flags.  However, <code>nextStamp</code> can be
  3526      * removed from the serialization stream; this will probably happen in the
  3527      * removed from the serialization stream; this will probably happen in the
  3527      * near future.
  3528      * near future.
  3528      */
  3529      */
       
  3530     @java.io.Serial
  3529     private synchronized void writeObject(ObjectOutputStream stream)
  3531     private synchronized void writeObject(ObjectOutputStream stream)
  3530          throws IOException
  3532          throws IOException
  3531     {
  3533     {
  3532         // Try to compute the time correctly, for the future (stream
  3534         // Try to compute the time correctly, for the future (stream
  3533         // version 2) in which we don't write out fields[] or isSet[].
  3535         // version 2) in which we don't write out fields[] or isSet[].
  3578     }
  3580     }
  3579 
  3581 
  3580     /**
  3582     /**
  3581      * Reconstitutes this object from a stream (i.e., deserialize it).
  3583      * Reconstitutes this object from a stream (i.e., deserialize it).
  3582      */
  3584      */
       
  3585     @java.io.Serial
  3583     private void readObject(ObjectInputStream stream)
  3586     private void readObject(ObjectInputStream stream)
  3584          throws IOException, ClassNotFoundException
  3587          throws IOException, ClassNotFoundException
  3585     {
  3588     {
  3586         final ObjectInputStream input = stream;
  3589         final ObjectInputStream input = stream;
  3587         input.defaultReadObject();
  3590         input.defaultReadObject();