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
|
@ -168,6 +168,7 @@ import java.util.Arrays;
|
|||
public class ChoiceFormat extends NumberFormat {
|
||||
|
||||
// Proclaim serial compatibility with 1.1 FCS
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = 1795184449645032964L;
|
||||
|
||||
/**
|
||||
|
@ -528,6 +529,7 @@ public class ChoiceFormat extends NumberFormat {
|
|||
* to maintain class invariants.
|
||||
* @throws InvalidObjectException if the objects read from the stream is invalid.
|
||||
*/
|
||||
@java.io.Serial
|
||||
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
|
||||
in.defaultReadObject();
|
||||
if (choiceLimits.length != choiceFormats.length) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue