mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +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
|
@ -497,6 +497,7 @@ public class GregorianCalendar extends Calendar {
|
|||
|
||||
// Proclaim serialization compatibility with JDK 1.1
|
||||
@SuppressWarnings("FieldNameHidesFieldInSuperclass")
|
||||
@java.io.Serial
|
||||
static final long serialVersionUID = -8125100834729963327L;
|
||||
|
||||
// Reference to the sun.util.calendar.Gregorian instance (singleton).
|
||||
|
@ -3229,6 +3230,7 @@ public class GregorianCalendar extends Calendar {
|
|||
/**
|
||||
* Updates internal state.
|
||||
*/
|
||||
@java.io.Serial
|
||||
private void readObject(ObjectInputStream stream)
|
||||
throws IOException, ClassNotFoundException {
|
||||
stream.defaultReadObject();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue