mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-27 02:30:06 +00:00
8075824: Add default[Read|Write]Object to java.util.Date
Reviewed-by: alanb, rriggs
This commit is contained in:
parent
2b63b5d1d7
commit
82dd135b5f
@ -1317,6 +1317,7 @@ public class Date
|
||||
private void writeObject(ObjectOutputStream s)
|
||||
throws IOException
|
||||
{
|
||||
s.defaultWriteObject();
|
||||
s.writeLong(getTimeImpl());
|
||||
}
|
||||
|
||||
@ -1326,6 +1327,7 @@ public class Date
|
||||
private void readObject(ObjectInputStream s)
|
||||
throws IOException, ClassNotFoundException
|
||||
{
|
||||
s.defaultReadObject();
|
||||
fastTime = s.readLong();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user