< prev index next >

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

Print this page

        

@@ -288,10 +288,11 @@
      * @serial
      */
     Locale locale = null;
 
     /* use serialVersionUID from JDK 1.1.4 for interoperability */
+    @java.io.Serial
     static final long serialVersionUID = -5987973545549424702L;
 
     /**
      * Returns an array of all locales for which the
      * <code>getInstance</code> methods of this class can return

@@ -890,10 +891,11 @@
      * <code>zoneStrings</code> field is initialized in order to make
      * sure the backward compatibility.
      *
      * @since 1.6
      */
+    @java.io.Serial
     private void writeObject(ObjectOutputStream stream) throws IOException {
         if (zoneStrings == null) {
             zoneStrings = TimeZoneNameUtility.getZoneStrings(locale);
         }
         stream.defaultWriteObject();
< prev index next >