Skip to content

Commit d8a278f

Browse files
committed
8274396: Suppress more warnings on non-serializable non-transient instance fields in client libs
Reviewed-by: bpb, naoto, serb, iris
1 parent e49e5b5 commit d8a278f

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

src/java.desktop/share/classes/com/sun/beans/editors/FontEditor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ public void removePropertyChangeListener(PropertyChangeListener l) {
220220
}
221221

222222
private Font font;
223+
@SuppressWarnings("serial") // Type of field is not Serializable
223224
private Toolkit toolkit;
224225
private String sampleText = "Abcde...";
225226

src/java.desktop/share/classes/sun/awt/im/CompositionArea.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,12 @@
6161
// This class is final due to the 6607310 fix. Refer to the CR for details.
6262
public final class CompositionArea extends JPanel implements InputMethodListener {
6363

64+
@SuppressWarnings("serial") // Type of field is not Serializable
6465
private CompositionAreaHandler handler;
6566

67+
@SuppressWarnings("serial") // Type of field is not Serializable
6668
private TextLayout composedTextLayout;
69+
@SuppressWarnings("serial") // Type of field is not Serializable
6770
private TextHitInfo caret = null;
6871
private JFrame compositionWindow;
6972
private static final int TEXT_ORIGIN_X = 5;

src/java.desktop/share/classes/sun/awt/im/InputMethodJFrame.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public class InputMethodJFrame
4040
extends JFrame
4141
implements InputMethodWindow {
4242

43+
@SuppressWarnings("serial") // Type of field is not Serializable
4344
InputContext inputContext = null;
4445

4546
/**

src/java.desktop/share/classes/sun/awt/im/SimpleInputMethodWindow.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public class SimpleInputMethodWindow
3838
extends Frame
3939
implements InputMethodWindow {
4040

41+
@SuppressWarnings("serial") // Type of field is not Serializable
4142
InputContext inputContext = null;
4243

4344
/**

src/java.desktop/share/classes/sun/print/PrinterJobWrapper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public class PrinterJobWrapper implements PrintRequestAttribute {
3939
@Serial
4040
private static final long serialVersionUID = -8792124426995707237L;
4141

42+
@SuppressWarnings("serial") // Type of field is not Serializable
4243
private PrinterJob job;
4344

4445
public PrinterJobWrapper(PrinterJob job) {

0 commit comments

Comments
 (0)