equal
deleted
inserted
replaced
70 |
70 |
71 import java.io.IOException; |
71 import java.io.IOException; |
72 import java.io.ObjectInput; |
72 import java.io.ObjectInput; |
73 import java.io.ObjectOutput; |
73 import java.io.ObjectOutput; |
74 import java.io.InvalidObjectException; |
74 import java.io.InvalidObjectException; |
|
75 import java.io.ObjectInputStream; |
75 import java.io.Serializable; |
76 import java.io.Serializable; |
76 import java.time.chrono.IsoChronology; |
77 import java.time.chrono.IsoChronology; |
77 import java.time.format.DateTimeFormatter; |
78 import java.time.format.DateTimeFormatter; |
78 import java.time.format.DateTimeParseException; |
79 import java.time.format.DateTimeParseException; |
79 import java.time.temporal.ChronoField; |
80 import java.time.temporal.ChronoField; |
1914 return new Ser(Ser.OFFSET_DATE_TIME_TYPE, this); |
1915 return new Ser(Ser.OFFSET_DATE_TIME_TYPE, this); |
1915 } |
1916 } |
1916 |
1917 |
1917 /** |
1918 /** |
1918 * Defend against malicious streams. |
1919 * Defend against malicious streams. |
1919 * @return never |
1920 * |
1920 * @throws InvalidObjectException always |
1921 * @throws InvalidObjectException always |
1921 */ |
1922 */ |
1922 private Object readResolve() throws InvalidObjectException { |
1923 private void readObject(ObjectInputStream s) throws InvalidObjectException { |
1923 throw new InvalidObjectException("Deserialization via serialization delegate"); |
1924 throw new InvalidObjectException("Deserialization via serialization delegate"); |
1924 } |
1925 } |
1925 |
1926 |
1926 void writeExternal(ObjectOutput out) throws IOException { |
1927 void writeExternal(ObjectOutput out) throws IOException { |
1927 dateTime.writeExternal(out); |
1928 dateTime.writeExternal(out); |