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

@ -184,6 +184,7 @@ import java.util.concurrent.atomic.AtomicLong;
*/
public final class CompactNumberFormat extends NumberFormat {
@java.io.Serial
private static final long serialVersionUID = 7128367218649234678L;
/**
@ -1784,6 +1785,7 @@ public final class CompactNumberFormat extends NumberFormat {
* @throws ClassNotFoundException if the class of a serialized object
* could not be found
*/
@java.io.Serial
private void readObject(ObjectInputStream inStream) throws IOException,
ClassNotFoundException {