OpenJDK / amber / amber
changeset 58253:23a06a5eeddd
8231368: Suppress warnings on non-serializable non-transient instance fields in java.security.jgss
Reviewed-by: mullan, coffeys
author | darcy |
---|---|
date | Tue, 08 Oct 2019 15:27:13 -0700 |
parents | 7b41c88f8432 |
children | eb68d459ba6a |
files | src/java.security.jgss/share/classes/sun/security/jgss/krb5/Krb5Context.java src/java.security.jgss/share/classes/sun/security/jgss/krb5/Krb5InitCredential.java src/java.security.jgss/share/classes/sun/security/krb5/internal/KRBError.java |
diffstat | 3 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/java.security.jgss/share/classes/sun/security/jgss/krb5/Krb5Context.java Tue Oct 08 17:30:48 2019 -0400 +++ b/src/java.security.jgss/share/classes/sun/security/jgss/krb5/Krb5Context.java Tue Oct 08 15:27:13 2019 -0700 @@ -1391,6 +1391,7 @@ static class KerberosSessionKey implements Key { private static final long serialVersionUID = 699307378954123869L; + @SuppressWarnings("serial") // Not statically typed as Serializable private final EncryptionKey key; KerberosSessionKey(EncryptionKey key) {
--- a/src/java.security.jgss/share/classes/sun/security/jgss/krb5/Krb5InitCredential.java Tue Oct 08 17:30:48 2019 -0400 +++ b/src/java.security.jgss/share/classes/sun/security/jgss/krb5/Krb5InitCredential.java Tue Oct 08 15:27:13 2019 -0700 @@ -53,7 +53,9 @@ private static final long serialVersionUID = 7723415700837898232L; + @SuppressWarnings("serial") // Not statically typed as Serializable private Krb5NameElement name; + @SuppressWarnings("serial") // Not statically typed as Serializable private Credentials krb5Credentials; private Krb5InitCredential(Krb5NameElement name,
--- a/src/java.security.jgss/share/classes/sun/security/krb5/internal/KRBError.java Tue Oct 08 17:30:48 2019 -0400 +++ b/src/java.security.jgss/share/classes/sun/security/krb5/internal/KRBError.java Tue Oct 08 15:27:13 2019 -0700 @@ -79,7 +79,9 @@ * <a href="http://www.ietf.org/rfc/rfc4120.txt"> * http://www.ietf.org/rfc/rfc4120.txt</a>. */ - +// The instance fields not statically typed as Serializable are ASN.1 +// encoded and written by the writeObject method. +@SuppressWarnings("serial") public class KRBError implements java.io.Serializable { static final long serialVersionUID = 3643809337475284503L;