mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +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
|
@ -52,7 +52,9 @@ public class GuardedObject implements java.io.Serializable {
|
|||
@java.io.Serial
|
||||
private static final long serialVersionUID = -5240450096227834308L;
|
||||
|
||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
private Object object; // the object we are guarding
|
||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
private Guard guard; // the guard
|
||||
|
||||
/**
|
||||
|
|
|
@ -1043,6 +1043,7 @@ public class SecureRandom extends java.util.Random {
|
|||
/**
|
||||
* @serial
|
||||
*/
|
||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
private MessageDigest digest = null;
|
||||
/**
|
||||
* @serial
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue