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
|
@ -1242,6 +1242,7 @@ public class SimpleTimeZone extends TimeZone {
|
|||
public static final int UTC_TIME = 2;
|
||||
|
||||
// Proclaim compatibility with 1.1
|
||||
@java.io.Serial
|
||||
static final long serialVersionUID = -403250971215465050L;
|
||||
|
||||
// the internal serial version which says which version was written
|
||||
|
@ -1636,6 +1637,7 @@ public class SimpleTimeZone extends TimeZone {
|
|||
* mode <code>DOW_IN_MONTH_MODE</code>, which is the only mode recognized by
|
||||
* JDK 1.1.
|
||||
*/
|
||||
@java.io.Serial
|
||||
private void writeObject(ObjectOutputStream stream)
|
||||
throws IOException
|
||||
{
|
||||
|
@ -1666,6 +1668,7 @@ public class SimpleTimeZone extends TimeZone {
|
|||
* We handle both JDK 1.1
|
||||
* binary formats and full formats with a packed byte array.
|
||||
*/
|
||||
@java.io.Serial
|
||||
private void readObject(ObjectInputStream stream)
|
||||
throws IOException, ClassNotFoundException
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue