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:
Joe Darcy 2021-09-28 21:48:33 +00:00
parent e49e5b5a7e
commit d8a278f394
5 changed files with 7 additions and 0 deletions

View File

@ -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...";

View File

@ -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;

View File

@ -40,6 +40,7 @@ public class InputMethodJFrame
extends JFrame
implements InputMethodWindow {
@SuppressWarnings("serial") // Type of field is not Serializable
InputContext inputContext = null;
/**

View File

@ -38,6 +38,7 @@ public class SimpleInputMethodWindow
extends Frame
implements InputMethodWindow {
@SuppressWarnings("serial") // Type of field is not Serializable
InputContext inputContext = null;
/**

View File

@ -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) {