< prev index next >

src/java.base/share/classes/java/util/SimpleTimeZone.java

Print this page

        

*** 1240,1249 **** --- 1240,1250 ---- * @since 1.4 */ public static final int UTC_TIME = 2; // Proclaim compatibility with 1.1 + @java.io.Serial static final long serialVersionUID = -403250971215465050L; // the internal serial version which says which version was written // - 0 (default) for version up to JDK 1.1.3 // - 1 for version from JDK 1.1.4, which includes 3 new fields
*** 1634,1643 **** --- 1635,1645 ---- * <code>endDay</code>, and <code>endDayOfWeek</code>. The values of these * fields in the required section are approximate values suited to the rule * mode <code>DOW_IN_MONTH_MODE</code>, which is the only mode recognized by * JDK 1.1. */ + @java.io.Serial private void writeObject(ObjectOutputStream stream) throws IOException { // Construct a binary rule byte[] rules = packRules();
*** 1664,1673 **** --- 1666,1676 ---- * Reconstitute this object from a stream (i.e., deserialize it). * * We handle both JDK 1.1 * binary formats and full formats with a packed byte array. */ + @java.io.Serial private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject();
< prev index next >