8231368: Suppress warnings on non-serializable non-transient instance fields in java.security.jgss

Reviewed-by: mullan, coffeys
This commit is contained in:
Joe Darcy 2019-10-08 15:27:13 -07:00
parent d113ca0727
commit 8fe60f46d7
3 changed files with 6 additions and 1 deletions

View File

@ -1391,6 +1391,7 @@ class Krb5Context implements GSSContextSpi {
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) {

View File

@ -53,7 +53,9 @@ public class Krb5InitCredential
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,

View File

@ -79,7 +79,9 @@ import sun.security.krb5.internal.util.KerberosString;
* <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;