8229997: Apply java.io.Serial annotations in java.base

Reviewed-by: alanb, rriggs
This commit is contained in:
Joe Darcy 2019-08-29 16:31:34 -07:00
parent 6d064a747e
commit 9d764ee48e
315 changed files with 880 additions and 254 deletions

View file

@ -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();