< prev index next >

src/java.base/share/classes/java/text/DecimalFormatSymbols.java

Print this page

        

@@ -850,10 +850,11 @@
      *
      * @throws InvalidObjectException if {@code char} and {@code String}
      *      representations of either percent, per mille, and/or minus sign disagree.
      * @since  1.1.6
      */
+    @java.io.Serial
     private void readObject(ObjectInputStream stream)
             throws IOException, ClassNotFoundException {
         stream.defaultReadObject();
         if (serialVersionOnStream < 1) {
             // Didn't have monetarySeparator or exponential field;

@@ -1065,10 +1066,11 @@
     // currency; only the ISO code is serialized.
     private transient Currency currency;
     private transient volatile boolean currencyInitialized;
 
     // Proclaim JDK 1.1 FCS compatibility
+    @java.io.Serial
     static final long serialVersionUID = 5772796243397350300L;
 
     // The internal serial version which says which version was written
     // - 0 (default) for version up to JDK 1.1.5
     // - 1 for version from JDK 1.1.6, which includes two new fields:
< prev index next >