mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +02:00
8231368: Suppress warnings on non-serializable non-transient instance fields in java.security.jgss
Reviewed-by: mullan, coffeys
This commit is contained in:
parent
d113ca0727
commit
8fe60f46d7
3 changed files with 6 additions and 1 deletions
|
@ -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) {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue