diff options
| author | Joe Darcy <darcy@openjdk.org> | 2019-08-29 10:52:21 -0700 |
|---|---|---|
| committer | Joe Darcy <darcy@openjdk.org> | 2019-08-29 10:52:21 -0700 |
| commit | 6d4ef5aaf3a66eec5a54bda2371a9a34d332ba74 (patch) | |
| tree | f084c121f0115442be82a62785f727f8291f03d5 /src/java.base/share/classes/java/security/KeyRep.java | |
| parent | 470d32df73af3723d499c7af9f95012af453d90e (diff) | |
| download | openjdk-6d4ef5aaf3a66eec5a54bda2371a9a34d332ba74.tar.gz openjdk-6d4ef5aaf3a66eec5a54bda2371a9a34d332ba74.zip | |
8229999: Apply java.io.Serial annotations to security types in java.base
Reviewed-by: rriggs, mullan
Diffstat (limited to 'src/java.base/share/classes/java/security/KeyRep.java')
| -rw-r--r-- | src/java.base/share/classes/java/security/KeyRep.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/java.base/share/classes/java/security/KeyRep.java b/src/java.base/share/classes/java/security/KeyRep.java index 9d53635f7ce..75829286368 100644 --- a/src/java.base/share/classes/java/security/KeyRep.java +++ b/src/java.base/share/classes/java/security/KeyRep.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2017, 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 @@ -57,6 +57,7 @@ import javax.crypto.spec.SecretKeySpec; public class KeyRep implements Serializable { + @java.io.Serial private static final long serialVersionUID = -4757683898830641853L; /** @@ -162,6 +163,7 @@ public class KeyRep implements Serializable { * encoded key bytes are unrecognized/invalid, of if the * resolution of the key fails for any reason */ + @java.io.Serial protected Object readResolve() throws ObjectStreamException { try { if (type == Type.SECRET && RAW.equals(format)) { |
