src/java.base/share/classes/java/text/MessageFormat.java
changeset 57956 e0b8b019d2f5
parent 54206 003cc64366da
child 58242 94bb65cb37d3
--- a/src/java.base/share/classes/java/text/MessageFormat.java	Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/text/MessageFormat.java	Thu Aug 29 16:31:34 2019 -0700
@@ -349,6 +349,7 @@
 
 public class MessageFormat extends Format {
 
+    @java.io.Serial
     private static final long serialVersionUID = 6479157306784022952L;
 
     /**
@@ -1153,6 +1154,7 @@
     public static class Field extends Format.Field {
 
         // Proclaim serial compatibility with 1.4 FCS
+        @java.io.Serial
         private static final long serialVersionUID = 7899943957617360810L;
 
         /**
@@ -1171,6 +1173,7 @@
          *         resolved.
          * @return resolved MessageFormat.Field constant
          */
+        @java.io.Serial
         protected Object readResolve() throws InvalidObjectException {
             if (this.getClass() != MessageFormat.Field.class) {
                 throw new InvalidObjectException("subclass didn't correctly implement readResolve");
@@ -1601,6 +1604,7 @@
      * to maintain class invariants.
      * @throws InvalidObjectException if the objects read from the stream is invalid.
      */
+    @java.io.Serial
     private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
         in.defaultReadObject();
         boolean isValid = maxOffset >= -1