equal
deleted
inserted
replaced
1240 * @since 1.4 |
1240 * @since 1.4 |
1241 */ |
1241 */ |
1242 public static final int UTC_TIME = 2; |
1242 public static final int UTC_TIME = 2; |
1243 |
1243 |
1244 // Proclaim compatibility with 1.1 |
1244 // Proclaim compatibility with 1.1 |
|
1245 @java.io.Serial |
1245 static final long serialVersionUID = -403250971215465050L; |
1246 static final long serialVersionUID = -403250971215465050L; |
1246 |
1247 |
1247 // the internal serial version which says which version was written |
1248 // the internal serial version which says which version was written |
1248 // - 0 (default) for version up to JDK 1.1.3 |
1249 // - 0 (default) for version up to JDK 1.1.3 |
1249 // - 1 for version from JDK 1.1.4, which includes 3 new fields |
1250 // - 1 for version from JDK 1.1.4, which includes 3 new fields |
1634 * <code>endDay</code>, and <code>endDayOfWeek</code>. The values of these |
1635 * <code>endDay</code>, and <code>endDayOfWeek</code>. The values of these |
1635 * fields in the required section are approximate values suited to the rule |
1636 * fields in the required section are approximate values suited to the rule |
1636 * mode <code>DOW_IN_MONTH_MODE</code>, which is the only mode recognized by |
1637 * mode <code>DOW_IN_MONTH_MODE</code>, which is the only mode recognized by |
1637 * JDK 1.1. |
1638 * JDK 1.1. |
1638 */ |
1639 */ |
|
1640 @java.io.Serial |
1639 private void writeObject(ObjectOutputStream stream) |
1641 private void writeObject(ObjectOutputStream stream) |
1640 throws IOException |
1642 throws IOException |
1641 { |
1643 { |
1642 // Construct a binary rule |
1644 // Construct a binary rule |
1643 byte[] rules = packRules(); |
1645 byte[] rules = packRules(); |
1664 * Reconstitute this object from a stream (i.e., deserialize it). |
1666 * Reconstitute this object from a stream (i.e., deserialize it). |
1665 * |
1667 * |
1666 * We handle both JDK 1.1 |
1668 * We handle both JDK 1.1 |
1667 * binary formats and full formats with a packed byte array. |
1669 * binary formats and full formats with a packed byte array. |
1668 */ |
1670 */ |
|
1671 @java.io.Serial |
1669 private void readObject(ObjectInputStream stream) |
1672 private void readObject(ObjectInputStream stream) |
1670 throws IOException, ClassNotFoundException |
1673 throws IOException, ClassNotFoundException |
1671 { |
1674 { |
1672 stream.defaultReadObject(); |
1675 stream.defaultReadObject(); |
1673 |
1676 |