mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8231334: Suppress warnings on non-serializable instance fields in client libs serializable classes
Reviewed-by: prr
This commit is contained in:
parent
464c8b84eb
commit
dab1284a36
28 changed files with 44 additions and 3 deletions
|
@ -104,6 +104,7 @@ public class AdjustmentEvent extends AWTEvent {
|
|||
* @serial
|
||||
* @see #getAdjustable
|
||||
*/
|
||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
Adjustable adjustable;
|
||||
|
||||
/**
|
||||
|
|
|
@ -85,6 +85,7 @@ public class InvocationEvent extends AWTEvent implements ActiveEvent {
|
|||
/**
|
||||
* The Runnable whose run() method will be called.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
protected Runnable runnable;
|
||||
|
||||
/**
|
||||
|
@ -94,6 +95,7 @@ public class InvocationEvent extends AWTEvent implements ActiveEvent {
|
|||
*
|
||||
* @see #isDispatched
|
||||
*/
|
||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
protected volatile Object notifier;
|
||||
|
||||
/**
|
||||
|
@ -103,6 +105,7 @@ public class InvocationEvent extends AWTEvent implements ActiveEvent {
|
|||
* @see #isDispatched
|
||||
* @since 1.8
|
||||
*/
|
||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
private final Runnable listener;
|
||||
|
||||
/**
|
||||
|
|
|
@ -95,6 +95,7 @@ public class ItemEvent extends AWTEvent {
|
|||
* @serial
|
||||
* @see #getItem()
|
||||
*/
|
||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
Object item;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue