mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8229997: Apply java.io.Serial annotations in java.base
Reviewed-by: alanb, rriggs
This commit is contained in:
parent
6d064a747e
commit
9d764ee48e
315 changed files with 880 additions and 254 deletions
|
@ -1005,6 +1005,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
|
|||
private int serialVersionOnStream = currentSerialVersion;
|
||||
|
||||
// Proclaim serialization compatibility with JDK 1.1
|
||||
@java.io.Serial
|
||||
static final long serialVersionUID = -1807547505821590642L;
|
||||
|
||||
// Mask values for calendar fields
|
||||
|
@ -3526,6 +3527,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
|
|||
* removed from the serialization stream; this will probably happen in the
|
||||
* near future.
|
||||
*/
|
||||
@java.io.Serial
|
||||
private synchronized void writeObject(ObjectOutputStream stream)
|
||||
throws IOException
|
||||
{
|
||||
|
@ -3580,6 +3582,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
|
|||
/**
|
||||
* Reconstitutes this object from a stream (i.e., deserialize it).
|
||||
*/
|
||||
@java.io.Serial
|
||||
private void readObject(ObjectInputStream stream)
|
||||
throws IOException, ClassNotFoundException
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue