mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +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
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -716,6 +716,7 @@ class Attribute implements Comparable<Attribute> {
|
|||
|
||||
public static
|
||||
class FormatException extends IOException {
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = -2542243830788066513L;
|
||||
|
||||
private int ctype;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -605,6 +605,7 @@ class ClassReader {
|
|||
}
|
||||
|
||||
static class ClassFormatException extends IOException {
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = -3564121733989501833L;
|
||||
|
||||
public ClassFormatException(String message) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -679,6 +679,7 @@ class Instruction {
|
|||
}
|
||||
}
|
||||
static class FormatException extends IOException {
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = 3175572275651367015L;
|
||||
|
||||
FormatException(String message) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue