8274396: Suppress more warnings on non-serializable non-transient instance fields in client libs
Reviewed-by: bpb, naoto, serb, iris
This commit is contained in:
parent
e49e5b5a7e
commit
d8a278f394
@ -220,6 +220,7 @@ public class FontEditor extends Panel implements java.beans.PropertyEditor {
|
||||
}
|
||||
|
||||
private Font font;
|
||||
@SuppressWarnings("serial") // Type of field is not Serializable
|
||||
private Toolkit toolkit;
|
||||
private String sampleText = "Abcde...";
|
||||
|
||||
|
@ -61,9 +61,12 @@ import javax.swing.border.LineBorder;
|
||||
// This class is final due to the 6607310 fix. Refer to the CR for details.
|
||||
public final class CompositionArea extends JPanel implements InputMethodListener {
|
||||
|
||||
@SuppressWarnings("serial") // Type of field is not Serializable
|
||||
private CompositionAreaHandler handler;
|
||||
|
||||
@SuppressWarnings("serial") // Type of field is not Serializable
|
||||
private TextLayout composedTextLayout;
|
||||
@SuppressWarnings("serial") // Type of field is not Serializable
|
||||
private TextHitInfo caret = null;
|
||||
private JFrame compositionWindow;
|
||||
private static final int TEXT_ORIGIN_X = 5;
|
||||
|
@ -40,6 +40,7 @@ public class InputMethodJFrame
|
||||
extends JFrame
|
||||
implements InputMethodWindow {
|
||||
|
||||
@SuppressWarnings("serial") // Type of field is not Serializable
|
||||
InputContext inputContext = null;
|
||||
|
||||
/**
|
||||
|
@ -38,6 +38,7 @@ public class SimpleInputMethodWindow
|
||||
extends Frame
|
||||
implements InputMethodWindow {
|
||||
|
||||
@SuppressWarnings("serial") // Type of field is not Serializable
|
||||
InputContext inputContext = null;
|
||||
|
||||
/**
|
||||
|
@ -39,6 +39,7 @@ public class PrinterJobWrapper implements PrintRequestAttribute {
|
||||
@Serial
|
||||
private static final long serialVersionUID = -8792124426995707237L;
|
||||
|
||||
@SuppressWarnings("serial") // Type of field is not Serializable
|
||||
private PrinterJob job;
|
||||
|
||||
public PrinterJobWrapper(PrinterJob job) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user