mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +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
|
@ -72,6 +72,7 @@ public class AlgorithmId implements Serializable, DerEncoder {
|
|||
private ObjectIdentifier algid;
|
||||
|
||||
// The (parsed) parameters
|
||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
private AlgorithmParameters algParams;
|
||||
private boolean constructedFromDer = true;
|
||||
|
||||
|
@ -80,6 +81,7 @@ public class AlgorithmId implements Serializable, DerEncoder {
|
|||
* DER-encoded form; subclasses can be made to automaticaly parse
|
||||
* them so there is fast access to these parameters.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
protected DerValue params;
|
||||
|
||||
|
||||
|
|
|
@ -70,6 +70,7 @@ import sun.security.provider.X509Factory;
|
|||
* @author Hemma Prafullchandra
|
||||
* @see X509CertInfo
|
||||
*/
|
||||
@SuppressWarnings("serial") // See writeReplace method in Certificate
|
||||
public class X509CertImpl extends X509Certificate implements DerEncoder {
|
||||
|
||||
@java.io.Serial
|
||||
|
|
|
@ -84,7 +84,7 @@ public class X509Key implements PublicKey {
|
|||
private int unusedBits = 0;
|
||||
|
||||
/* BitArray form of key */
|
||||
private BitArray bitStringKey = null;
|
||||
private transient BitArray bitStringKey = null;
|
||||
|
||||
/* The encoding for the key. */
|
||||
protected byte[] encodedKey;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue