mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8231262: Suppress warnings on non-serializable instance fields in security libs serializable classes
Reviewed-by: mullan, chegar
This commit is contained in:
parent
a690af3832
commit
fbb4093562
18 changed files with 25 additions and 2 deletions
|
@ -55,6 +55,7 @@ class CryptoPermission extends java.security.Permission {
|
|||
private String alg;
|
||||
private int maxKeySize = Integer.MAX_VALUE; // no restriction on maxKeySize
|
||||
private String exemptionMechanism = null;
|
||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
private AlgorithmParameterSpec algParamSpec = null;
|
||||
private boolean checkParam = false; // no restriction on param
|
||||
|
||||
|
|
|
@ -119,6 +119,7 @@ public final class PrivateCredentialPermission extends Permission {
|
|||
* The set contains elements of type,
|
||||
* {@code PrivateCredentialPermission.CredOwner}.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
private Set<Principal> principals; // ignored - kept around for compatibility
|
||||
private transient CredOwner[] credOwners;
|
||||
|
||||
|
|
|
@ -111,6 +111,7 @@ public final class Subject implements java.io.Serializable {
|
|||
* {@code java.security.Principal}.
|
||||
* The set is a {@code Subject.SecureSet}.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
Set<Principal> principals;
|
||||
|
||||
/**
|
||||
|
|
|
@ -39,6 +39,7 @@ public class UnsupportedCallbackException extends Exception {
|
|||
/**
|
||||
* @serial
|
||||
*/
|
||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
private Callback callback;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue