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
|
@ -1157,6 +1157,7 @@ public class ArrayDeque<E> extends AbstractCollection<E>
|
|||
}
|
||||
}
|
||||
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = 2340985798034038923L;
|
||||
|
||||
/**
|
||||
|
@ -1168,6 +1169,7 @@ public class ArrayDeque<E> extends AbstractCollection<E>
|
|||
* followed by all of its elements (each an object reference) in
|
||||
* first-to-last order.
|
||||
*/
|
||||
@java.io.Serial
|
||||
private void writeObject(java.io.ObjectOutputStream s)
|
||||
throws java.io.IOException {
|
||||
s.defaultWriteObject();
|
||||
|
@ -1192,6 +1194,7 @@ public class ArrayDeque<E> extends AbstractCollection<E>
|
|||
* could not be found
|
||||
* @throws java.io.IOException if an I/O error occurs
|
||||
*/
|
||||
@java.io.Serial
|
||||
private void readObject(java.io.ObjectInputStream s)
|
||||
throws java.io.IOException, ClassNotFoundException {
|
||||
s.defaultReadObject();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue