mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8231202: Suppress warnings on non-serializable non-transient instance fields in serializable classes
Reviewed-by: rriggs, chegar
This commit is contained in:
parent
fbb4093562
commit
3c9b6d8554
18 changed files with 86 additions and 6 deletions
|
@ -230,6 +230,7 @@ public class Throwable implements Serializable {
|
|||
* @serial
|
||||
* @since 1.7
|
||||
*/
|
||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
private List<Throwable> suppressedExceptions = SUPPRESSED_SENTINEL;
|
||||
|
||||
/** Message for trying to suppress a null exception. */
|
||||
|
|
|
@ -76,6 +76,7 @@ public final class SerializedLambda implements Serializable {
|
|||
private final String implMethodSignature;
|
||||
private final int implMethodKind;
|
||||
private final String instantiatedMethodType;
|
||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
private final Object[] capturedArgs;
|
||||
|
||||
/**
|
||||
|
|
|
@ -308,6 +308,7 @@ public class Proxy implements java.io.Serializable {
|
|||
* the invocation handler for this proxy instance.
|
||||
* @serial
|
||||
*/
|
||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
protected InvocationHandler h;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue