< prev index next >

src/java.base/share/classes/java/time/LocalTime.java

Print this page

        

@@ -211,10 +211,11 @@
     static final long NANOS_PER_DAY = NANOS_PER_HOUR * HOURS_PER_DAY;
 
     /**
      * Serialization version.
      */
+    @java.io.Serial
     private static final long serialVersionUID = 6414437269572265201L;
 
     /**
      * The hour.
      */

@@ -1672,20 +1673,22 @@
      *  }
      * </pre>
      *
      * @return the instance of {@code Ser}, not null
      */
+    @java.io.Serial
     private Object writeReplace() {
         return new Ser(Ser.LOCAL_TIME_TYPE, this);
     }
 
     /**
      * Defend against malicious streams.
      *
      * @param s the stream to read
      * @throws InvalidObjectException always
      */
+    @java.io.Serial
     private void readObject(ObjectInputStream s) throws InvalidObjectException {
         throw new InvalidObjectException("Deserialization via serialization delegate");
     }
 
     void writeExternal(DataOutput out) throws IOException {
< prev index next >