mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +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
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue