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

@ -852,6 +852,7 @@ public class DecimalFormatSymbols implements Cloneable, Serializable {
* representations of either percent, per mille, and/or minus sign disagree.
* @since 1.1.6
*/
@java.io.Serial
private void readObject(ObjectInputStream stream)
throws IOException, ClassNotFoundException {
stream.defaultReadObject();
@ -1067,6 +1068,7 @@ public class DecimalFormatSymbols implements Cloneable, Serializable {
private transient volatile boolean currencyInitialized;
// Proclaim JDK 1.1 FCS compatibility
@java.io.Serial
static final long serialVersionUID = 5772796243397350300L;
// The internal serial version which says which version was written