mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +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
|
@ -83,6 +83,7 @@ public class BitSet implements Cloneable, java.io.Serializable {
|
|||
* bit position i % 64 (where bit position 0 refers to the least
|
||||
* significant bit and 63 refers to the most significant bit).
|
||||
*/
|
||||
@java.io.Serial
|
||||
private static final ObjectStreamField[] serialPersistentFields = {
|
||||
new ObjectStreamField("bits", long[].class),
|
||||
};
|
||||
|
@ -104,6 +105,7 @@ public class BitSet implements Cloneable, java.io.Serializable {
|
|||
private transient boolean sizeIsSticky = false;
|
||||
|
||||
/* use serialVersionUID from JDK 1.0.2 for interoperability */
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = 7997698588986878753L;
|
||||
|
||||
/**
|
||||
|
@ -1124,6 +1126,7 @@ public class BitSet implements Cloneable, java.io.Serializable {
|
|||
* Save the state of the {@code BitSet} instance to a stream (i.e.,
|
||||
* serialize it).
|
||||
*/
|
||||
@java.io.Serial
|
||||
private void writeObject(ObjectOutputStream s)
|
||||
throws IOException {
|
||||
|
||||
|
@ -1141,6 +1144,7 @@ public class BitSet implements Cloneable, java.io.Serializable {
|
|||
* Reconstitute the {@code BitSet} instance from a stream (i.e.,
|
||||
* deserialize it).
|
||||
*/
|
||||
@java.io.Serial
|
||||
private void readObject(ObjectInputStream s)
|
||||
throws IOException, ClassNotFoundException {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue