8033712: Fix more serial lint warnings in sun.awt
Reviewed-by: alanb, serb, prr
This commit is contained in:
parent
23e6201109
commit
7c9de3ea76
@ -39,6 +39,7 @@ import java.lang.reflect.InvocationTargetException;
|
||||
/**
|
||||
* An utility window class. This is a base class for Tooltip and Balloon.
|
||||
*/
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
public abstract class InfoWindow extends Window {
|
||||
private Container container;
|
||||
private Closer closer;
|
||||
@ -146,6 +147,7 @@ public abstract class InfoWindow extends Window {
|
||||
Rectangle getBounds();
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
public static class Tooltip extends InfoWindow {
|
||||
|
||||
public interface LiveArguments extends InfoWindow.LiveArguments {
|
||||
@ -239,6 +241,7 @@ public abstract class InfoWindow extends Window {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
public static class Balloon extends InfoWindow {
|
||||
|
||||
public interface LiveArguments extends InfoWindow.LiveArguments {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2007, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -38,6 +38,7 @@ import javax.swing.plaf.basic.BasicBorders;
|
||||
import com.sun.java.swing.plaf.motif.*;
|
||||
import sun.awt.X11.XComponentPeer;
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
class XAWTLookAndFeel extends MotifLookAndFeel {
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -29,6 +29,7 @@ import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
public class XCreateWindowParams extends HashMap {
|
||||
public XCreateWindowParams() {
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -35,6 +35,7 @@ import java.awt.*;
|
||||
* @author Thomas Ball
|
||||
* @author Bino George
|
||||
*/
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
public class XCustomCursor extends X11CustomCursor {
|
||||
|
||||
public XCustomCursor(Image cursor, Point hotSpot, String name)
|
||||
|
@ -688,6 +688,7 @@ public class XEmbedCanvasPeer extends XCanvasPeer implements WindowFocusListener
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
private static class XEmbedDropTarget extends DropTarget {
|
||||
public void addDropTargetListener(DropTargetListener dtl)
|
||||
throws TooManyListenersException {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2007, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -29,6 +29,7 @@ import java.awt.Component;
|
||||
import java.awt.Toolkit;
|
||||
import sun.awt.AWTAccessor;
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
public class XEmbedChildProxy extends Component {
|
||||
long handle;
|
||||
XEmbeddingContainer container;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -30,6 +30,7 @@ import java.awt.*;
|
||||
import java.awt.AWTKeyStroke;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
public class XEmbeddedFrame extends EmbeddedFrame {
|
||||
|
||||
private static final Logger log = Logger.getLogger(XEmbeddedFrame.class.getName());
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -30,6 +30,7 @@ package sun.awt.X11;
|
||||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
public class XException extends RuntimeException {
|
||||
public XException() {
|
||||
super();
|
||||
|
@ -199,12 +199,13 @@ class XFileDialogPeer extends XDialogPeer implements FileDialogPeer, ActionListe
|
||||
// After showing we should display 'user.dir' as current directory
|
||||
// if user didn't set directory programatically
|
||||
pathField = new TextField(savedDir != null ? savedDir : userDir);
|
||||
|
||||
pathChoice = new Choice() {
|
||||
@SuppressWarnings("serial") // Anonymous class
|
||||
Choice tmp = new Choice() {
|
||||
public Dimension getPreferredSize() {
|
||||
return new Dimension(PATH_CHOICE_WIDTH, pathField.getPreferredSize().height);
|
||||
}
|
||||
};
|
||||
pathChoice = tmp;
|
||||
pathPanel = new Panel();
|
||||
pathPanel.setLayout(new BorderLayout());
|
||||
|
||||
@ -845,6 +846,7 @@ class XFileDialogPeer extends XDialogPeer implements FileDialogPeer, ActionListe
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
class Separator extends Canvas {
|
||||
public final static int HORIZONTAL = 0;
|
||||
public final static int VERTICAL = 1;
|
||||
|
@ -63,7 +63,6 @@ import sun.awt.CausedFocusEvent;
|
||||
import sun.awt.AWTAccessor;
|
||||
import sun.awt.SunToolkit;
|
||||
|
||||
|
||||
final class XTextAreaPeer extends XComponentPeer implements TextAreaPeer {
|
||||
|
||||
private final AWTTextPane textPane;
|
||||
@ -615,7 +614,7 @@ final class XTextAreaPeer extends XComponentPeer implements TextAreaPeer {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
static final class XAWTCaret extends DefaultCaret {
|
||||
@Override
|
||||
public void focusGained(FocusEvent e) {
|
||||
@ -647,6 +646,7 @@ final class XTextAreaPeer extends XComponentPeer implements TextAreaPeer {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
final class XAWTScrollBarButton extends BasicArrowButton {
|
||||
|
||||
private UIDefaults uidefaults = XToolkit.getUIDefaults();
|
||||
@ -907,6 +907,7 @@ final class XTextAreaPeer extends XComponentPeer implements TextAreaPeer {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
final class AWTTextArea extends JTextArea implements DocumentListener {
|
||||
|
||||
private boolean isFocused = false;
|
||||
@ -1105,6 +1106,7 @@ final class XTextAreaPeer extends XComponentPeer implements TextAreaPeer {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
private class AWTTextPane extends JScrollPane implements FocusListener {
|
||||
|
||||
private final JTextArea jtext;
|
||||
@ -1190,6 +1192,7 @@ final class XTextAreaPeer extends XComponentPeer implements TextAreaPeer {
|
||||
return xwin.getGraphics();
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
final class XAWTScrollBar extends ScrollBar {
|
||||
|
||||
XAWTScrollBar(int i) {
|
||||
@ -1205,6 +1208,7 @@ final class XTextAreaPeer extends XComponentPeer implements TextAreaPeer {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
static class BevelBorder extends AbstractBorder implements UIResource {
|
||||
private Color darkShadow = SystemColor.controlDkShadow;
|
||||
private Color lightShadow = SystemColor.controlLtHighlight;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -541,6 +541,7 @@ final class XTextFieldPeer extends XComponentPeer implements TextFieldPeer {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
final class XAWTTextField extends JPasswordField
|
||||
implements ActionListener, DocumentListener {
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -501,6 +501,7 @@ public class XTrayIconPeer implements TrayIconPeer,
|
||||
// Special embedded frame for tray icon
|
||||
// ***************************************
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
private static class XTrayIconEmbeddedFrame extends XEmbeddedFrame {
|
||||
public XTrayIconEmbeddedFrame(){
|
||||
super(XToolkit.getDefaultRootWindow(), true, true);
|
||||
@ -527,6 +528,7 @@ public class XTrayIconPeer implements TrayIconPeer,
|
||||
// Classes for painting an image on canvas
|
||||
// ***************************************
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
static class TrayIconCanvas extends IconCanvas {
|
||||
TrayIcon target;
|
||||
boolean autosize;
|
||||
@ -548,6 +550,7 @@ public class XTrayIconPeer implements TrayIconPeer,
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
public static class IconCanvas extends Canvas {
|
||||
volatile Image image;
|
||||
IconObserver observer;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2003, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -36,6 +36,7 @@ import sun.awt.image.ImageRepresentation;
|
||||
* @see Component#setCursor
|
||||
* @author Thomas Ball
|
||||
*/
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
public abstract class X11CustomCursor extends CustomCursor {
|
||||
|
||||
public X11CustomCursor(Image cursor, Point hotSpot, String name)
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -68,7 +68,7 @@ import javax.swing.SwingConstants;
|
||||
* @author Leif Samuelsson
|
||||
* @author Kenneth Russell
|
||||
* @since 1.4 */
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
final class Win32ShellFolder2 extends ShellFolder {
|
||||
|
||||
private static native void initIDs();
|
||||
|
@ -38,6 +38,7 @@ import sun.awt.image.ToolkitImage;
|
||||
* @see Component#setCursor
|
||||
* @author ThomasBall
|
||||
*/
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
final class WCustomCursor extends CustomCursor {
|
||||
|
||||
WCustomCursor(Image cursor, Point hotSpot, String name)
|
||||
|
@ -35,6 +35,7 @@ import sun.security.action.GetPropertyAction;
|
||||
import java.security.PrivilegedAction;
|
||||
import java.security.AccessController;
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
public class WEmbeddedFrame extends EmbeddedFrame {
|
||||
|
||||
static {
|
||||
|
@ -33,6 +33,7 @@ import java.util.Hashtable;
|
||||
*
|
||||
* @author Jim Graham
|
||||
*/
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
final class WFontMetrics extends FontMetrics {
|
||||
|
||||
static {
|
||||
|
@ -34,6 +34,7 @@ import java.awt.print.PrinterJob;
|
||||
import java.awt.print.PageFormat;
|
||||
import java.awt.print.Printable;
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
final class WPageDialog extends WPrintDialog {
|
||||
static {
|
||||
initIDs();
|
||||
|
@ -32,6 +32,7 @@ import java.awt.print.PrinterJob;
|
||||
|
||||
import sun.awt.AWTAccessor;
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
class WPrintDialog extends Dialog {
|
||||
static {
|
||||
initIDs();
|
||||
|
@ -2194,6 +2194,7 @@ public final class WPrinterJob extends RasterPrinterJob
|
||||
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
class PrintToFileErrorDialog extends Dialog implements ActionListener{
|
||||
public PrintToFileErrorDialog(Frame parent, String title, String message,
|
||||
String buttonText) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*
|
||||
h/*
|
||||
* Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
@ -164,6 +164,7 @@ final class WScrollPanePeer extends WPanelPeer implements ScrollPanePeer {
|
||||
* scroll bar thumbs and paint the exposed area in one synchronous
|
||||
* operation.
|
||||
*/
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
class ScrollEvent extends PeerEvent {
|
||||
ScrollEvent(Object source, Runnable runnable) {
|
||||
super(source, runnable, 0L);
|
||||
|
Loading…
Reference in New Issue
Block a user