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

@ -3870,6 +3870,7 @@ public class DecimalFormat extends NumberFormat {
* literal values. This is exactly what we want, since that corresponds to
* the pre-version-2 behavior.
*/
@java.io.Serial
private void readObject(ObjectInputStream stream)
throws IOException, ClassNotFoundException
{
@ -4343,5 +4344,6 @@ public class DecimalFormat extends NumberFormat {
static final int MAXIMUM_FRACTION_DIGITS = Integer.MAX_VALUE;
// Proclaim JDK 1.1 serial compatibility.
@java.io.Serial
static final long serialVersionUID = 864413376551465018L;
}