< prev index next >

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

Print this page

        

@@ -182,10 +182,11 @@
  * @see DecimalFormat
  * @since 12
  */
 public final class CompactNumberFormat extends NumberFormat {
 
+    @java.io.Serial
     private static final long serialVersionUID = 7128367218649234678L;
 
     /**
      * The patterns for compact form of numbers for this
      * {@code CompactNumberFormat}. A possible example is

@@ -1782,10 +1783,11 @@
      * @param inStream the stream
      * @throws IOException if an I/O error occurs
      * @throws ClassNotFoundException if the class of a serialized object
      *         could not be found
      */
+    @java.io.Serial
     private void readObject(ObjectInputStream inStream) throws IOException,
             ClassNotFoundException {
 
         inStream.defaultReadObject();
         if (decimalPattern == null || compactPatterns == null
< prev index next >