8035692: Fix serial lint warnings in mac-specific code

Reviewed-by: alanb, prr
This commit is contained in:
Joe Darcy 2014-03-13 16:29:26 -07:00
parent 15594ec61d
commit 25d1d45fd9
45 changed files with 146 additions and 41 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -30,4 +30,5 @@ package apple.laf;
* "apple.laf.AquaLookAndFeel" is so widely used, documented, * "apple.laf.AquaLookAndFeel" is so widely used, documented,
* and hard coded that it is impractical to remove it. * and hard coded that it is impractical to remove it.
*/ */
@SuppressWarnings("serial") // JDK implementation class
public class AquaLookAndFeel extends com.apple.laf.AquaLookAndFeel { } public class AquaLookAndFeel extends com.apple.laf.AquaLookAndFeel { }

View File

@ -36,7 +36,7 @@ import java.security.*;
* *
* This provider only exists to provide access to the Apple keychain-based KeyStore implementation * This provider only exists to provide access to the Apple keychain-based KeyStore implementation
*/ */
@SuppressWarnings("serial") // JDK implementation class
public final class AppleProvider extends Provider { public final class AppleProvider extends Provider {
private static final String info = "Apple Provider"; private static final String info = "Apple Provider";

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -36,6 +36,7 @@ import java.awt.Window;
* @since Java for Mac OS X 10.6 Update 3 * @since Java for Mac OS X 10.6 Update 3
* @since Java for Mac OS X 10.5 Update 8 * @since Java for Mac OS X 10.5 Update 8
*/ */
@SuppressWarnings("serial") // JDK implementation class
public abstract class AppEvent extends EventObject { public abstract class AppEvent extends EventObject {
AppEvent() { AppEvent() {
super(Application.getApplication()); super(Application.getApplication());
@ -44,6 +45,7 @@ public abstract class AppEvent extends EventObject {
/** /**
* Contains a list of files. * Contains a list of files.
*/ */
@SuppressWarnings("serial") // JDK implementation class
public abstract static class FilesEvent extends AppEvent { public abstract static class FilesEvent extends AppEvent {
final List<File> files; final List<File> files;
@ -64,6 +66,7 @@ public abstract class AppEvent extends EventObject {
* *
* @see OpenFilesHandler#openFiles(OpenFilesEvent) * @see OpenFilesHandler#openFiles(OpenFilesEvent)
*/ */
@SuppressWarnings("serial") // JDK implementation class
public static class OpenFilesEvent extends FilesEvent { public static class OpenFilesEvent extends FilesEvent {
final String searchTerm; final String searchTerm;
@ -87,6 +90,7 @@ public abstract class AppEvent extends EventObject {
* *
* @see PrintFilesHandler#printFiles(PrintFilesEvent) * @see PrintFilesHandler#printFiles(PrintFilesEvent)
*/ */
@SuppressWarnings("serial") // JDK implementation class
public static class PrintFilesEvent extends FilesEvent { public static class PrintFilesEvent extends FilesEvent {
PrintFilesEvent(final List<File> files) { PrintFilesEvent(final List<File> files) {
super(files); super(files);
@ -98,6 +102,7 @@ public abstract class AppEvent extends EventObject {
* *
* @see OpenURIHandler#openURI(OpenURIEvent) * @see OpenURIHandler#openURI(OpenURIEvent)
*/ */
@SuppressWarnings("serial") // JDK implementation class
public static class OpenURIEvent extends AppEvent { public static class OpenURIEvent extends AppEvent {
final URI uri; final URI uri;
@ -118,6 +123,7 @@ public abstract class AppEvent extends EventObject {
* *
* @see AboutHandler#handleAbout() * @see AboutHandler#handleAbout()
*/ */
@SuppressWarnings("serial") // JDK implementation class
public static class AboutEvent extends AppEvent { AboutEvent() { } } public static class AboutEvent extends AppEvent { AboutEvent() { } }
/** /**
@ -125,6 +131,7 @@ public abstract class AppEvent extends EventObject {
* *
* @see PreferencesHandler#handlePreferences() * @see PreferencesHandler#handlePreferences()
*/ */
@SuppressWarnings("serial") // JDK implementation class
public static class PreferencesEvent extends AppEvent { PreferencesEvent() { } } public static class PreferencesEvent extends AppEvent { PreferencesEvent() { } }
/** /**
@ -132,6 +139,7 @@ public abstract class AppEvent extends EventObject {
* *
* @see QuitHandler#handleQuitRequestWith(QuitEvent, QuitResponse) * @see QuitHandler#handleQuitRequestWith(QuitEvent, QuitResponse)
*/ */
@SuppressWarnings("serial") // JDK implementation class
public static class QuitEvent extends AppEvent { QuitEvent() { } } public static class QuitEvent extends AppEvent { QuitEvent() { } }
/** /**
@ -139,6 +147,7 @@ public abstract class AppEvent extends EventObject {
* *
* @see AppReOpenedListener#appReOpened(AppReOpenedEvent) * @see AppReOpenedListener#appReOpened(AppReOpenedEvent)
*/ */
@SuppressWarnings("serial") // JDK implementation class
public static class AppReOpenedEvent extends AppEvent { AppReOpenedEvent() { } } public static class AppReOpenedEvent extends AppEvent { AppReOpenedEvent() { } }
/** /**
@ -147,6 +156,7 @@ public abstract class AppEvent extends EventObject {
* @see AppForegroundListener#appRaisedToForeground(AppForegroundEvent) * @see AppForegroundListener#appRaisedToForeground(AppForegroundEvent)
* @see AppForegroundListener#appMovedToBackground(AppForegroundEvent) * @see AppForegroundListener#appMovedToBackground(AppForegroundEvent)
*/ */
@SuppressWarnings("serial") // JDK implementation class
public static class AppForegroundEvent extends AppEvent { AppForegroundEvent() { } } public static class AppForegroundEvent extends AppEvent { AppForegroundEvent() { } }
/** /**
@ -155,6 +165,7 @@ public abstract class AppEvent extends EventObject {
* @see AppHiddenListener#appHidden(AppHiddenEvent) * @see AppHiddenListener#appHidden(AppHiddenEvent)
* @see AppHiddenListener#appUnhidden(AppHiddenEvent) * @see AppHiddenListener#appUnhidden(AppHiddenEvent)
*/ */
@SuppressWarnings("serial") // JDK implementation class
public static class AppHiddenEvent extends AppEvent { AppHiddenEvent() { } } public static class AppHiddenEvent extends AppEvent { AppHiddenEvent() { } }
/** /**
@ -163,6 +174,7 @@ public abstract class AppEvent extends EventObject {
* @see UserSessionListener#userSessionActivated(UserSessionEvent) * @see UserSessionListener#userSessionActivated(UserSessionEvent)
* @see UserSessionListener#userSessionDeactivated(UserSessionEvent) * @see UserSessionListener#userSessionDeactivated(UserSessionEvent)
*/ */
@SuppressWarnings("serial") // JDK implementation class
public static class UserSessionEvent extends AppEvent { UserSessionEvent() { } } public static class UserSessionEvent extends AppEvent { UserSessionEvent() { } }
/** /**
@ -171,6 +183,7 @@ public abstract class AppEvent extends EventObject {
* @see ScreenSleepListener#screenAboutToSleep(ScreenSleepEvent) * @see ScreenSleepListener#screenAboutToSleep(ScreenSleepEvent)
* @see ScreenSleepListener#screenAwoke(ScreenSleepEvent) * @see ScreenSleepListener#screenAwoke(ScreenSleepEvent)
*/ */
@SuppressWarnings("serial") // JDK implementation class
public static class ScreenSleepEvent extends AppEvent { ScreenSleepEvent() { } } public static class ScreenSleepEvent extends AppEvent { ScreenSleepEvent() { } }
/** /**
@ -179,6 +192,7 @@ public abstract class AppEvent extends EventObject {
* @see SystemSleepListener#systemAboutToSleep(SystemSleepEvent) * @see SystemSleepListener#systemAboutToSleep(SystemSleepEvent)
* @see SystemSleepListener#systemAwoke(SystemSleepEvent) * @see SystemSleepListener#systemAwoke(SystemSleepEvent)
*/ */
@SuppressWarnings("serial") // JDK implementation class
public static class SystemSleepEvent extends AppEvent { SystemSleepEvent() { } } public static class SystemSleepEvent extends AppEvent { SystemSleepEvent() { } }
/** /**
@ -188,6 +202,7 @@ public abstract class AppEvent extends EventObject {
* *
* @since Java for Mac OS X 10.7 Update 1 * @since Java for Mac OS X 10.7 Update 1
*/ */
@SuppressWarnings("serial") // JDK implementation class
public static class FullScreenEvent extends AppEvent { public static class FullScreenEvent extends AppEvent {
final Window window; final Window window;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -34,6 +34,7 @@ import java.util.EventObject;
* @since 1.4 * @since 1.4
*/ */
@Deprecated @Deprecated
@SuppressWarnings("serial") // JDK implementation class
public class ApplicationEvent extends EventObject { public class ApplicationEvent extends EventObject {
private String fFilename = null; private String fFilename = null;
private boolean fHandled = false; private boolean fHandled = false;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -35,6 +35,7 @@ import javax.swing.border.Border;
import javax.swing.plaf.UIResource; import javax.swing.plaf.UIResource;
import javax.swing.text.*; import javax.swing.text.*;
@SuppressWarnings("serial") // Superclass is not serializable across versions
public class AquaCaret extends DefaultCaret implements UIResource, PropertyChangeListener { public class AquaCaret extends DefaultCaret implements UIResource, PropertyChangeListener {
final boolean isMultiLineEditor; final boolean isMultiLineEditor;
final JTextComponent c; final JTextComponent c;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -33,6 +33,7 @@ import javax.swing.plaf.UIResource;
import apple.laf.JRSUIState; import apple.laf.JRSUIState;
import apple.laf.JRSUIConstants.*; import apple.laf.JRSUIConstants.*;
@SuppressWarnings("serial") // Superclass is not serializable across versions
class AquaComboBoxButton extends JButton { class AquaComboBoxButton extends JButton {
final protected JComboBox comboBox; final protected JComboBox comboBox;
final protected JList list; final protected JList list;
@ -43,6 +44,7 @@ class AquaComboBoxButton extends JButton {
boolean isPopDown; boolean isPopDown;
boolean isSquare; boolean isSquare;
@SuppressWarnings("serial") // anonymous class
protected AquaComboBoxButton(final AquaComboBoxUI ui, final JComboBox comboBox, final CellRendererPane rendererPane, final JList list) { protected AquaComboBoxButton(final AquaComboBoxUI ui, final JComboBox comboBox, final CellRendererPane rendererPane, final JList list) {
super(""); super("");
putClientProperty("JButton.buttonType", "comboboxInternal"); putClientProperty("JButton.buttonType", "comboboxInternal");

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -33,6 +33,7 @@ import javax.swing.plaf.basic.BasicComboPopup;
import sun.lwawt.macosx.CPlatformWindow; import sun.lwawt.macosx.CPlatformWindow;
@SuppressWarnings("serial") // Superclass is not serializable across versions
class AquaComboBoxPopup extends BasicComboPopup { class AquaComboBoxPopup extends BasicComboPopup {
static final int FOCUS_RING_PAD_LEFT = 6; static final int FOCUS_RING_PAD_LEFT = 6;
static final int FOCUS_RING_PAD_RIGHT = 6; static final int FOCUS_RING_PAD_RIGHT = 6;
@ -147,6 +148,7 @@ class AquaComboBoxPopup extends BasicComboPopup {
} }
@Override @Override
@SuppressWarnings("serial") // anonymous class
protected JList createList() { protected JList createList() {
return new JList(comboBox.getModel()) { return new JList(comboBox.getModel()) {
@Override @Override

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,6 +28,7 @@ package com.apple.laf;
import javax.swing.*; import javax.swing.*;
import javax.swing.plaf.UIResource; import javax.swing.plaf.UIResource;
@SuppressWarnings("serial") // Superclass is not serializable across versions
class AquaComboBoxRenderer extends AquaComboBoxRendererInternal implements UIResource { class AquaComboBoxRenderer extends AquaComboBoxRendererInternal implements UIResource {
public AquaComboBoxRenderer(final JComboBox comboBox) { public AquaComboBoxRenderer(final JComboBox comboBox) {
super(comboBox); super(comboBox);

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -30,6 +30,7 @@ import sun.swing.SwingUtilities2;
import javax.swing.*; import javax.swing.*;
import java.awt.*; import java.awt.*;
@SuppressWarnings("serial") // Superclass is not serializable across versions
class AquaComboBoxRendererInternal extends JLabel implements ListCellRenderer { class AquaComboBoxRendererInternal extends JLabel implements ListCellRenderer {
final JComboBox fComboBox; final JComboBox fComboBox;
boolean fSelected; boolean fSelected;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -202,7 +202,9 @@ public class AquaComboBoxUI extends BasicComboBoxUI implements Sizeable {
} }
} }
@SuppressWarnings("serial") // Superclass is not serializable across versions
class AquaCustomComboTextField extends JTextField { class AquaCustomComboTextField extends JTextField {
@SuppressWarnings("serial") // anonymous class
public AquaCustomComboTextField() { public AquaCustomComboTextField() {
final InputMap inputMap = getInputMap(); final InputMap inputMap = getInputMap();
inputMap.put(KeyStroke.getKeyStroke("DOWN"), highlightNextAction); inputMap.put(KeyStroke.getKeyStroke("DOWN"), highlightNextAction);
@ -286,6 +288,7 @@ public class AquaComboBoxUI extends BasicComboBoxUI implements Sizeable {
SwingUtilities.replaceUIActionMap(comboBox, actionMap); SwingUtilities.replaceUIActionMap(comboBox, actionMap);
} }
@SuppressWarnings("serial") // Superclass is not serializable across versions
private abstract class ComboBoxAction extends AbstractAction { private abstract class ComboBoxAction extends AbstractAction {
public void actionPerformed(final ActionEvent e) { public void actionPerformed(final ActionEvent e) {
if (!comboBox.isEnabled() || !comboBox.isShowing()) { if (!comboBox.isEnabled() || !comboBox.isShowing()) {
@ -306,6 +309,7 @@ public class AquaComboBoxUI extends BasicComboBoxUI implements Sizeable {
/** /**
* Hilight _but do not select_ the next item in the list. * Hilight _but do not select_ the next item in the list.
*/ */
@SuppressWarnings("serial") // anonymous class
private Action highlightNextAction = new ComboBoxAction() { private Action highlightNextAction = new ComboBoxAction() {
@Override @Override
public void performComboBoxAction(AquaComboBoxUI ui) { public void performComboBoxAction(AquaComboBoxUI ui) {
@ -322,6 +326,7 @@ public class AquaComboBoxUI extends BasicComboBoxUI implements Sizeable {
/** /**
* Hilight _but do not select_ the previous item in the list. * Hilight _but do not select_ the previous item in the list.
*/ */
@SuppressWarnings("serial") // anonymous class
private Action highlightPreviousAction = new ComboBoxAction() { private Action highlightPreviousAction = new ComboBoxAction() {
@Override @Override
void performComboBoxAction(final AquaComboBoxUI ui) { void performComboBoxAction(final AquaComboBoxUI ui) {
@ -334,6 +339,7 @@ public class AquaComboBoxUI extends BasicComboBoxUI implements Sizeable {
} }
}; };
@SuppressWarnings("serial") // anonymous class
private Action highlightFirstAction = new ComboBoxAction() { private Action highlightFirstAction = new ComboBoxAction() {
@Override @Override
void performComboBoxAction(final AquaComboBoxUI ui) { void performComboBoxAction(final AquaComboBoxUI ui) {
@ -342,6 +348,7 @@ public class AquaComboBoxUI extends BasicComboBoxUI implements Sizeable {
} }
}; };
@SuppressWarnings("serial") // anonymous class
private Action highlightLastAction = new ComboBoxAction() { private Action highlightLastAction = new ComboBoxAction() {
@Override @Override
void performComboBoxAction(final AquaComboBoxUI ui) { void performComboBoxAction(final AquaComboBoxUI ui) {
@ -351,6 +358,7 @@ public class AquaComboBoxUI extends BasicComboBoxUI implements Sizeable {
} }
}; };
@SuppressWarnings("serial") // anonymous class
private Action highlightPageUpAction = new ComboBoxAction() { private Action highlightPageUpAction = new ComboBoxAction() {
@Override @Override
void performComboBoxAction(final AquaComboBoxUI ui) { void performComboBoxAction(final AquaComboBoxUI ui) {
@ -371,6 +379,7 @@ public class AquaComboBoxUI extends BasicComboBoxUI implements Sizeable {
} }
}; };
@SuppressWarnings("serial") // anonymous class
private Action highlightPageDownAction = new ComboBoxAction() { private Action highlightPageDownAction = new ComboBoxAction() {
@Override @Override
void performComboBoxAction(final AquaComboBoxUI ui) { void performComboBoxAction(final AquaComboBoxUI ui) {
@ -486,12 +495,14 @@ public class AquaComboBoxUI extends BasicComboBoxUI implements Sizeable {
// This is somewhat messy. The difference here from BasicComboBoxUI.EnterAction is that // This is somewhat messy. The difference here from BasicComboBoxUI.EnterAction is that
// arrow up or down does not automatically select the // arrow up or down does not automatically select the
@SuppressWarnings("serial") // anonymous class
private static final Action triggerSelectionAction = new AbstractAction() { private static final Action triggerSelectionAction = new AbstractAction() {
public void actionPerformed(final ActionEvent e) { public void actionPerformed(final ActionEvent e) {
triggerSelectionEvent((JComboBox)e.getSource(), e); triggerSelectionEvent((JComboBox)e.getSource(), e);
} }
}; };
@SuppressWarnings("serial") // anonymous class
private static final Action toggleSelectionAction = new AbstractAction() { private static final Action toggleSelectionAction = new AbstractAction() {
public void actionPerformed(final ActionEvent e) { public void actionPerformed(final ActionEvent e) {
final JComboBox comboBox = (JComboBox)e.getSource(); final JComboBox comboBox = (JComboBox)e.getSource();
@ -510,6 +521,7 @@ public class AquaComboBoxUI extends BasicComboBoxUI implements Sizeable {
} }
}; };
@SuppressWarnings("serial") // anonymous class
private static Action hideAction = new AbstractAction() { private static Action hideAction = new AbstractAction() {
@Override @Override
public void actionPerformed(final ActionEvent e) { public void actionPerformed(final ActionEvent e) {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -857,6 +857,7 @@ public class AquaFileChooserUI extends FileChooserUI {
// Action to attach to the file list so we can override the default action // Action to attach to the file list so we can override the default action
// of the table for the return key, which is to select the next line. // of the table for the return key, which is to select the next line.
@SuppressWarnings("serial") // Superclass is not serializable across versions
protected class DefaultButtonAction extends AbstractAction { protected class DefaultButtonAction extends AbstractAction {
public void actionPerformed(final ActionEvent e) { public void actionPerformed(final ActionEvent e) {
final JRootPane root = AquaFileChooserUI.this.getFileChooser().getRootPane(); final JRootPane root = AquaFileChooserUI.this.getFileChooser().getRootPane();
@ -883,6 +884,7 @@ public class AquaFileChooserUI extends FileChooserUI {
/** /**
* Creates a new folder. * Creates a new folder.
*/ */
@SuppressWarnings("serial") // Superclass is not serializable across versions
protected class NewFolderAction extends AbstractAction { protected class NewFolderAction extends AbstractAction {
protected NewFolderAction() { protected NewFolderAction() {
super(newFolderAccessibleName); super(newFolderAccessibleName);
@ -944,6 +946,7 @@ public class AquaFileChooserUI extends FileChooserUI {
/** /**
* Responds to an Open, Save, or Choose request * Responds to an Open, Save, or Choose request
*/ */
@SuppressWarnings("serial") // Superclass is not serializable across versions
protected class ApproveSelectionAction extends AbstractAction { protected class ApproveSelectionAction extends AbstractAction {
public void actionPerformed(final ActionEvent e) { public void actionPerformed(final ActionEvent e) {
fSubPanel.approveSelection(getFileChooser()); fSubPanel.approveSelection(getFileChooser());
@ -953,6 +956,7 @@ public class AquaFileChooserUI extends FileChooserUI {
/** /**
* Responds to an OpenDirectory request * Responds to an OpenDirectory request
*/ */
@SuppressWarnings("serial") // Superclass is not serializable across versions
protected class OpenSelectionAction extends AbstractAction { protected class OpenSelectionAction extends AbstractAction {
public void actionPerformed(final ActionEvent e) { public void actionPerformed(final ActionEvent e) {
final int index = fFileList.getSelectedRow(); final int index = fFileList.getSelectedRow();
@ -966,6 +970,7 @@ public class AquaFileChooserUI extends FileChooserUI {
/** /**
* Responds to a cancel request. * Responds to a cancel request.
*/ */
@SuppressWarnings("serial") // Superclass is not serializable across versions
protected class CancelSelectionAction extends AbstractAction { protected class CancelSelectionAction extends AbstractAction {
public void actionPerformed(final ActionEvent e) { public void actionPerformed(final ActionEvent e) {
getFileChooser().cancelSelection(); getFileChooser().cancelSelection();
@ -979,6 +984,7 @@ public class AquaFileChooserUI extends FileChooserUI {
/** /**
* Rescans the files in the current directory * Rescans the files in the current directory
*/ */
@SuppressWarnings("serial") // Superclass is not serializable across versions
protected class UpdateAction extends AbstractAction { protected class UpdateAction extends AbstractAction {
public void actionPerformed(final ActionEvent e) { public void actionPerformed(final ActionEvent e) {
final JFileChooser fc = getFileChooser(); final JFileChooser fc = getFileChooser();
@ -1004,6 +1010,7 @@ public class AquaFileChooserUI extends FileChooserUI {
} }
// Penultimate superclass is JLabel // Penultimate superclass is JLabel
@SuppressWarnings("serial") // Superclass is not serializable across versions
protected class MacFCTableCellRenderer extends DefaultTableCellRenderer { protected class MacFCTableCellRenderer extends DefaultTableCellRenderer {
boolean fIsSelected = false; boolean fIsSelected = false;
@ -1084,6 +1091,7 @@ public class AquaFileChooserUI extends FileChooserUI {
} }
@SuppressWarnings("serial") // Superclass is not serializable across versions
protected class FileRenderer extends MacFCTableCellRenderer { protected class FileRenderer extends MacFCTableCellRenderer {
public FileRenderer(final Font f) { public FileRenderer(final Font f) {
super(f); super(f);
@ -1100,6 +1108,7 @@ public class AquaFileChooserUI extends FileChooserUI {
} }
} }
@SuppressWarnings("serial") // Superclass is not serializable across versions
protected class DateRenderer extends MacFCTableCellRenderer { protected class DateRenderer extends MacFCTableCellRenderer {
public DateRenderer(final Font f) { public DateRenderer(final Font f) {
super(f); super(f);
@ -1134,6 +1143,7 @@ public class AquaFileChooserUI extends FileChooserUI {
return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE);
} }
@SuppressWarnings("serial") // anonymous class
protected ListCellRenderer createDirectoryComboBoxRenderer(final JFileChooser fc) { protected ListCellRenderer createDirectoryComboBoxRenderer(final JFileChooser fc) {
return new AquaComboBoxRendererInternal(directoryComboBox) { return new AquaComboBoxRendererInternal(directoryComboBox) {
public Component getListCellRendererComponent(final JList list, final Object value, final int index, final boolean isSelected, final boolean cellHasFocus) { public Component getListCellRendererComponent(final JList list, final Object value, final int index, final boolean isSelected, final boolean cellHasFocus) {
@ -1162,6 +1172,7 @@ public class AquaFileChooserUI extends FileChooserUI {
/** /**
* Data model for a type-face selection combo-box. * Data model for a type-face selection combo-box.
*/ */
@SuppressWarnings("serial") // Superclass is not serializable across versions
protected class DirectoryComboBoxModel extends AbstractListModel implements ComboBoxModel { protected class DirectoryComboBoxModel extends AbstractListModel implements ComboBoxModel {
Vector<File> fDirectories = new Vector<File>(); Vector<File> fDirectories = new Vector<File>();
int topIndex = -1; int topIndex = -1;
@ -1245,6 +1256,7 @@ public class AquaFileChooserUI extends FileChooserUI {
// //
// Renderer for Types ComboBox // Renderer for Types ComboBox
// //
@SuppressWarnings("serial") // anonymous class
protected ListCellRenderer createFilterComboBoxRenderer() { protected ListCellRenderer createFilterComboBoxRenderer() {
return new AquaComboBoxRendererInternal(filterComboBox) { return new AquaComboBoxRendererInternal(filterComboBox) {
public Component getListCellRendererComponent(final JList list, final Object value, final int index, final boolean isSelected, final boolean cellHasFocus) { public Component getListCellRendererComponent(final JList list, final Object value, final int index, final boolean isSelected, final boolean cellHasFocus) {
@ -1266,6 +1278,7 @@ public class AquaFileChooserUI extends FileChooserUI {
/** /**
* Data model for a type-face selection combo-box. * Data model for a type-face selection combo-box.
*/ */
@SuppressWarnings("serial") // Superclass is not serializable across versions
protected class FilterComboBoxModel extends AbstractListModel<FileFilter> implements ComboBoxModel<FileFilter>, protected class FilterComboBoxModel extends AbstractListModel<FileFilter> implements ComboBoxModel<FileFilter>,
PropertyChangeListener { PropertyChangeListener {
protected FileFilter[] filters; protected FileFilter[] filters;
@ -1336,6 +1349,7 @@ public class AquaFileChooserUI extends FileChooserUI {
/** /**
* Acts when FilterComboBox has changed the selected item. * Acts when FilterComboBox has changed the selected item.
*/ */
@SuppressWarnings("serial") // Superclass is not serializable across versions
protected class FilterComboBoxAction extends AbstractAction { protected class FilterComboBoxAction extends AbstractAction {
protected FilterComboBoxAction() { protected FilterComboBoxAction() {
super("FilterComboBoxAction"); super("FilterComboBoxAction");
@ -1349,6 +1363,7 @@ public class AquaFileChooserUI extends FileChooserUI {
/** /**
* Acts when DirectoryComboBox has changed the selected item. * Acts when DirectoryComboBox has changed the selected item.
*/ */
@SuppressWarnings("serial") // Superclass is not serializable across versions
protected class DirectoryComboBoxAction extends AbstractAction { protected class DirectoryComboBoxAction extends AbstractAction {
protected DirectoryComboBoxAction() { protected DirectoryComboBoxAction() {
super("DirectoryComboBoxAction"); super("DirectoryComboBoxAction");
@ -1360,6 +1375,7 @@ public class AquaFileChooserUI extends FileChooserUI {
} }
// Sorting Table operations // Sorting Table operations
@SuppressWarnings("serial") // Superclass is not serializable across versions
class JSortingTableHeader extends JTableHeader { class JSortingTableHeader extends JTableHeader {
public JSortingTableHeader(final TableColumnModel cm) { public JSortingTableHeader(final TableColumnModel cm) {
super(cm); super(cm);
@ -1396,6 +1412,7 @@ public class AquaFileChooserUI extends FileChooserUI {
return label; return label;
} }
@SuppressWarnings("serial") // Superclass is not serializable across versions
class AquaTableCellRenderer extends DefaultTableCellRenderer implements UIResource { class AquaTableCellRenderer extends DefaultTableCellRenderer implements UIResource {
public Component getTableCellRendererComponent(final JTable localTable, final Object value, final boolean isSelected, final boolean hasFocus, final int row, final int column) { public Component getTableCellRendererComponent(final JTable localTable, final Object value, final boolean isSelected, final boolean hasFocus, final int row, final int column) {
if (localTable != null) { if (localTable != null) {
@ -1474,6 +1491,7 @@ public class AquaFileChooserUI extends FileChooserUI {
tPanel.add(labelArea); tPanel.add(labelArea);
// separator line // separator line
@SuppressWarnings("serial") // anonymous class
final JSeparator sep = new JSeparator(){ final JSeparator sep = new JSeparator(){
public Dimension getPreferredSize() { public Dimension getPreferredSize() {
return new Dimension(((JComponent)getParent()).getWidth(), 3); return new Dimension(((JComponent)getParent()).getWidth(), 3);
@ -1761,6 +1779,7 @@ public class AquaFileChooserUI extends FileChooserUI {
return p; return p;
} }
@SuppressWarnings("serial") // Superclass is not serializable across versions
protected class ScrollPaneCornerPanel extends JPanel { protected class ScrollPaneCornerPanel extends JPanel {
final Border border = UIManager.getBorder("TableHeader.cellBorder"); final Border border = UIManager.getBorder("TableHeader.cellBorder");
@ -2225,6 +2244,7 @@ public class AquaFileChooserUI extends FileChooserUI {
} }
// See FileRenderer - documents in Save dialogs draw disabled, so they shouldn't be selected // See FileRenderer - documents in Save dialogs draw disabled, so they shouldn't be selected
@SuppressWarnings("serial") // Superclass is not serializable across versions
class MacListSelectionModel extends DefaultListSelectionModel { class MacListSelectionModel extends DefaultListSelectionModel {
AquaFileSystemModel fModel; AquaFileSystemModel fModel;
@ -2315,6 +2335,7 @@ public class AquaFileChooserUI extends FileChooserUI {
// Convenience, to translate from the JList directory view to the Mac-style JTable // Convenience, to translate from the JList directory view to the Mac-style JTable
// & minimize diffs between this and BasicFileChooserUI // & minimize diffs between this and BasicFileChooserUI
@SuppressWarnings("serial") // Superclass is not serializable across versions
class JTableExtension extends JTable { class JTableExtension extends JTable {
public void setSelectedIndex(final int index) { public void setSelectedIndex(final int index) {
getSelectionModel().setSelectionInterval(index, index); getSelectionModel().setSelectionInterval(index, index);

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -39,6 +39,7 @@ import javax.swing.table.AbstractTableModel;
* *
* Some of it came from BasicDirectoryModel * Some of it came from BasicDirectoryModel
*/ */
@SuppressWarnings("serial") // Superclass is not serializable across versions
class AquaFileSystemModel extends AbstractTableModel implements PropertyChangeListener { class AquaFileSystemModel extends AbstractTableModel implements PropertyChangeListener {
private final JTable fFileList; private final JTable fFileList;
private LoadFilesThread loadThread = null; private LoadFilesThread loadThread = null;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -34,6 +34,7 @@ import javax.swing.filechooser.FileView;
import com.apple.laf.AquaUtils.RecyclableSingleton; import com.apple.laf.AquaUtils.RecyclableSingleton;
@SuppressWarnings("serial") // JDK implementation class
class AquaFileView extends FileView { class AquaFileView extends FileView {
private static final boolean DEBUG = false; private static final boolean DEBUG = false;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -34,6 +34,7 @@ import javax.swing.plaf.*;
import com.apple.laf.AquaUtils.RecyclableSingleton; import com.apple.laf.AquaUtils.RecyclableSingleton;
@SuppressWarnings("serial") // JDK implementation class
public class AquaFonts { public class AquaFonts {
private static final String MAC_DEFAULT_FONT_NAME = "Lucida Grande"; private static final String MAC_DEFAULT_FONT_NAME = "Lucida Grande";

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -248,6 +248,7 @@ public class AquaImageFactory {
} }
} }
@SuppressWarnings("serial") // Superclass is not serializable across versions
static class InvertableImageIcon extends ImageIcon implements InvertableIcon, UIResource { static class InvertableImageIcon extends ImageIcon implements InvertableIcon, UIResource {
Icon invertedImage; Icon invertedImage;
public InvertableImageIcon(final Image image) { public InvertableImageIcon(final Image image) {
@ -480,6 +481,7 @@ public class AquaImageFactory {
// when we use SystemColors, we need to proxy the color with something that implements UIResource, // when we use SystemColors, we need to proxy the color with something that implements UIResource,
// so that it will be uninstalled when the look and feel is changed. // so that it will be uninstalled when the look and feel is changed.
@SuppressWarnings("serial") // JDK implementation class
private static class SystemColorProxy extends Color implements UIResource { private static class SystemColorProxy extends Color implements UIResource {
final Color color; final Color color;
public SystemColorProxy(final Color color) { public SystemColorProxy(final Color color) {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -167,6 +167,7 @@ public class AquaInternalFrameDockIconUI extends DesktopIconUI implements MouseL
fFrame.putClientProperty(CACHED_FRAME_ICON_KEY, null); fFrame.putClientProperty(CACHED_FRAME_ICON_KEY, null);
} }
@SuppressWarnings("serial") // Superclass is not serializable across versions
class ScaledImageLabel extends JLabel { class ScaledImageLabel extends JLabel {
ScaledImageLabel() { ScaledImageLabel() {
super(null, null, CENTER); super(null, null, CENTER);
@ -226,6 +227,7 @@ public class AquaInternalFrameDockIconUI extends DesktopIconUI implements MouseL
} }
} }
@SuppressWarnings("serial") // Superclass is not serializable across versions
class DockLabel extends JLabel { class DockLabel extends JLabel {
final static int NUB_HEIGHT = 7; final static int NUB_HEIGHT = 7;
final static int ROUND_ADDITIONAL_HEIGHT = 8; final static int ROUND_ADDITIONAL_HEIGHT = 8;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -53,6 +53,7 @@ import javax.swing.*;
* *
* @see com.sun.java.swing.plaf.windows.WindowsDesktopManager * @see com.sun.java.swing.plaf.windows.WindowsDesktopManager
*/ */
@SuppressWarnings("serial") // JDK implementation class
public class AquaInternalFrameManager extends DefaultDesktopManager { public class AquaInternalFrameManager extends DefaultDesktopManager {
// Variables // Variables

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -116,6 +116,7 @@ public class AquaInternalFramePaneUI extends BasicDesktopPaneUI implements Mouse
} }
} }
@SuppressWarnings("serial") // Superclass is not serializable across versions
class Dock extends JComponent implements Border { class Dock extends JComponent implements Border {
static final int DOCK_EDGE_SLACK = 8; static final int DOCK_EDGE_SLACK = 8;
@ -185,6 +186,7 @@ public class AquaInternalFramePaneUI extends BasicDesktopPaneUI implements Mouse
} }
} }
@SuppressWarnings("serial") // JDK implementation class
class AquaDockingDesktopManager extends AquaInternalFrameManager { class AquaDockingDesktopManager extends AquaInternalFrameManager {
public void openFrame(final JInternalFrame f) { public void openFrame(final JInternalFrame f) {
final JInternalFrame.JDesktopIcon desktopIcon = f.getDesktopIcon(); final JInternalFrame.JDesktopIcon desktopIcon = f.getDesktopIcon();

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -753,6 +753,7 @@ public class AquaInternalFrameUI extends BasicInternalFrameUI implements SwingCo
} }
}; };
@SuppressWarnings("serial") // Superclass is not serializable across versions
static class CompoundUIBorder extends CompoundBorder implements UIResource { static class CompoundUIBorder extends CompoundBorder implements UIResource {
public CompoundUIBorder(final Border inside, final Border outside) { super(inside, outside); } public CompoundUIBorder(final Border inside, final Border outside) { super(inside, outside); }
} }
@ -796,6 +797,7 @@ public class AquaInternalFrameUI extends BasicInternalFrameUI implements SwingCo
} }
}; };
@SuppressWarnings("serial") // Superclass is not serializable across versions
class ResizeBox extends JLabel implements MouseListener, MouseMotionListener, MouseWheelListener, ComponentListener, PropertyChangeListener, UIResource { class ResizeBox extends JLabel implements MouseListener, MouseMotionListener, MouseWheelListener, ComponentListener, PropertyChangeListener, UIResource {
final JLayeredPane layeredPane; final JLayeredPane layeredPane;
Dimension originalSize; Dimension originalSize;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -528,6 +528,7 @@ public class AquaKeyBindings {
} }
// extracted and adapted from DefaultEditorKit in 1.6 // extracted and adapted from DefaultEditorKit in 1.6
@SuppressWarnings("serial") // Superclass is not serializable across versions
static abstract class DeleteWordAction extends TextAction { static abstract class DeleteWordAction extends TextAction {
public DeleteWordAction(final String name) { super(name); } public DeleteWordAction(final String name) { super(name); }
@ -565,6 +566,7 @@ public class AquaKeyBindings {
final TextAction pageUpMultilineAction = new AquaMultilineAction(pageUpMultiline, DefaultEditorKit.pageUpAction, DefaultEditorKit.beginAction); final TextAction pageUpMultilineAction = new AquaMultilineAction(pageUpMultiline, DefaultEditorKit.pageUpAction, DefaultEditorKit.beginAction);
final TextAction pageDownMultilineAction = new AquaMultilineAction(pageDownMultiline, DefaultEditorKit.pageDownAction, DefaultEditorKit.endAction); final TextAction pageDownMultilineAction = new AquaMultilineAction(pageDownMultiline, DefaultEditorKit.pageDownAction, DefaultEditorKit.endAction);
@SuppressWarnings("serial") // Superclass is not serializable across versions
static class AquaMultilineAction extends TextAction { static class AquaMultilineAction extends TextAction {
final String targetActionName; final String targetActionName;
final String proxyActionName; final String proxyActionName;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -67,6 +67,7 @@ public class AquaListUI extends BasicListUI {
list.getActionMap().put("aquaEnd", new AquaHomeEndAction(false)); list.getActionMap().put("aquaEnd", new AquaHomeEndAction(false));
} }
@SuppressWarnings("serial") // Superclass is not serializable across versions
static class AquaHomeEndAction extends AbstractAction { static class AquaHomeEndAction extends AbstractAction {
private boolean fHomeAction = false; private boolean fHomeAction = false;

View File

@ -38,6 +38,7 @@ import static javax.swing.UIDefaults.LazyValue;
import sun.swing.*; import sun.swing.*;
import apple.laf.*; import apple.laf.*;
@SuppressWarnings("serial") // Superclass is not serializable across versions
public class AquaLookAndFeel extends BasicLookAndFeel { public class AquaLookAndFeel extends BasicLookAndFeel {
static final String sOldPropertyPrefix = "com.apple.macos."; // old prefix for things like 'useScreenMenuBar' static final String sOldPropertyPrefix = "com.apple.macos."; // old prefix for things like 'useScreenMenuBar'
static final String sPropertyPrefix = "apple.laf."; // new prefix for things like 'useScreenMenuBar' static final String sPropertyPrefix = "apple.laf."; // new prefix for things like 'useScreenMenuBar'

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -44,6 +44,7 @@ public class AquaNativeResources {
} }
// TODO: removing CColorPaint for now // TODO: removing CColorPaint for now
@SuppressWarnings("serial") // JDK implementation class
static class CColorPaintUIResource extends Color/*CColorPaint*/ implements UIResource { static class CColorPaintUIResource extends Color/*CColorPaint*/ implements UIResource {
// The color passed to this MUST be a retained NSColor, and the CColorPaintUIResource // The color passed to this MUST be a retained NSColor, and the CColorPaintUIResource
// takes ownership of that retain. // takes ownership of that retain.

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -188,6 +188,7 @@ public class AquaSpinnerUI extends SpinnerUI {
return spinner.getEditor().getBaselineResizeBehavior(); return spinner.getEditor().getBaselineResizeBehavior();
} }
@SuppressWarnings("serial") // Superclass is not serializable across versions
class TransparentButton extends JButton implements SwingConstants { class TransparentButton extends JButton implements SwingConstants {
boolean interceptRepaints = false; boolean interceptRepaints = false;
@ -293,6 +294,7 @@ public class AquaSpinnerUI extends SpinnerUI {
return map; return map;
} }
@SuppressWarnings("serial") // Superclass is not serializable across versions
private static class ArrowButtonHandler extends AbstractAction implements MouseListener { private static class ArrowButtonHandler extends AbstractAction implements MouseListener {
final javax.swing.Timer autoRepeatTimer; final javax.swing.Timer autoRepeatTimer;
final boolean isNext; final boolean isNext;
@ -461,6 +463,7 @@ public class AquaSpinnerUI extends SpinnerUI {
} }
} }
@SuppressWarnings("serial") // Superclass is not serializable across versions
class SpinPainter extends JComponent { class SpinPainter extends JComponent {
final AquaPainter<JRSUIState> painter = AquaPainter.create(JRSUIStateFactory.getSpinnerArrows()); final AquaPainter<JRSUIState> painter = AquaPainter.create(JRSUIStateFactory.getSpinnerArrows());

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -39,6 +39,7 @@ import com.apple.laf.AquaUtils.LazyKeyedSingleton;
import com.apple.laf.AquaUtils.RecyclableSingleton; import com.apple.laf.AquaUtils.RecyclableSingleton;
import com.apple.laf.AquaUtils.RecyclableSingletonFromDefaultConstructor; import com.apple.laf.AquaUtils.RecyclableSingletonFromDefaultConstructor;
@SuppressWarnings("serial") // Superclass is not serializable across versions
public class AquaSplitPaneDividerUI extends BasicSplitPaneDivider { public class AquaSplitPaneDividerUI extends BasicSplitPaneDivider {
final AquaPainter<JRSUIState> painter = AquaPainter.create(JRSUIStateFactory.getSplitPaneDivider()); final AquaPainter<JRSUIState> painter = AquaPainter.create(JRSUIStateFactory.getSplitPaneDivider());

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -3237,6 +3237,7 @@ public class AquaTabbedPaneCopyFromBasicUI extends TabbedPaneUI implements Swing
} }
@SuppressWarnings("serial") // Superclass is not serializable across versions
private class ScrollableTabViewport extends JViewport implements UIResource { private class ScrollableTabViewport extends JViewport implements UIResource {
public ScrollableTabViewport() { public ScrollableTabViewport() {
super(); super();
@ -3251,6 +3252,7 @@ public class AquaTabbedPaneCopyFromBasicUI extends TabbedPaneUI implements Swing
} }
} }
@SuppressWarnings("serial") // Superclass is not serializable across versions
private class ScrollableTabPanel extends JPanel implements UIResource { private class ScrollableTabPanel extends JPanel implements UIResource {
public ScrollableTabPanel() { public ScrollableTabPanel() {
super(null); super(null);
@ -3281,6 +3283,7 @@ public class AquaTabbedPaneCopyFromBasicUI extends TabbedPaneUI implements Swing
} }
} }
@SuppressWarnings("serial") // Superclass is not serializable across versions
private class ScrollableTabButton extends javax.swing.plaf.basic.BasicArrowButton implements UIResource, SwingConstants { private class ScrollableTabButton extends javax.swing.plaf.basic.BasicArrowButton implements UIResource, SwingConstants {
public ScrollableTabButton(final int direction) { public ScrollableTabButton(final int direction) {
super(direction, UIManager.getColor("TabbedPane.selected"), UIManager.getColor("TabbedPane.shadow"), UIManager.getColor("TabbedPane.darkShadow"), UIManager.getColor("TabbedPane.highlight")); super(direction, UIManager.getColor("TabbedPane.selected"), UIManager.getColor("TabbedPane.shadow"), UIManager.getColor("TabbedPane.darkShadow"), UIManager.getColor("TabbedPane.highlight"));
@ -3585,6 +3588,7 @@ public class AquaTabbedPaneCopyFromBasicUI extends TabbedPaneUI implements Swing
return htmlViews; return htmlViews;
} }
@SuppressWarnings("serial") // Superclass is not serializable across versions
private class TabContainer extends JPanel implements UIResource { private class TabContainer extends JPanel implements UIResource {
private boolean notifyTabbedPane = true; private boolean notifyTabbedPane = true;
@ -3629,6 +3633,7 @@ public class AquaTabbedPaneCopyFromBasicUI extends TabbedPaneUI implements Swing
} }
} }
@SuppressWarnings("serial") // Superclass is not serializable across versions
private class CroppedEdge extends JPanel implements UIResource { private class CroppedEdge extends JPanel implements UIResource {
private Shape shape; private Shape shape;
private int tabIndex; private int tabIndex;
@ -3708,6 +3713,7 @@ public class AquaTabbedPaneCopyFromBasicUI extends TabbedPaneUI implements Swing
* @version 1.6, 11/17/05 * @version 1.6, 11/17/05
* @author Scott Violet * @author Scott Violet
*/ */
@SuppressWarnings("serial") // Superclass is not serializable across versions
static class LazyActionMap extends ActionMapUIResource { static class LazyActionMap extends ActionMapUIResource {
/** /**
* Object to invoke <code>loadActionMap</code> on. This may be * Object to invoke <code>loadActionMap</code> on. This may be

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -987,7 +987,8 @@ public class AquaTabbedPaneUI extends AquaTabbedPaneCopyFromBasicUI {
if (component == null) { if (component == null) {
menuItem = new JMenuItem(tabPane.getTitleAt(i), tabPane.getIconAt(i)); menuItem = new JMenuItem(tabPane.getTitleAt(i), tabPane.getIconAt(i));
} else { } else {
menuItem = new JMenuItem() { @SuppressWarnings("serial") // anonymous class
JMenuItem tmp = new JMenuItem() {
public void paintComponent(final Graphics g) { public void paintComponent(final Graphics g) {
super.paintComponent(g); super.paintComponent(g);
final Dimension size = component.getSize(); final Dimension size = component.getSize();
@ -1001,6 +1002,7 @@ public class AquaTabbedPaneUI extends AquaTabbedPaneCopyFromBasicUI {
return component.getPreferredSize(); return component.getPreferredSize();
} }
}; };
menuItem = tmp;
} }
final Color background = tabPane.getBackgroundAt(i); final Color background = tabPane.getBackgroundAt(i);

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -36,6 +36,7 @@ import apple.laf.JRSUIConstants.*;
import com.apple.laf.AquaUtils.RecyclableSingleton; import com.apple.laf.AquaUtils.RecyclableSingleton;
@SuppressWarnings("serial") // Superclass is not serializable across versions
public class AquaTableHeaderBorder extends AbstractBorder { public class AquaTableHeaderBorder extends AbstractBorder {
protected static final int SORT_NONE = 0; protected static final int SORT_NONE = 0;
protected static final int SORT_ASCENDING = 1; protected static final int SORT_ASCENDING = 1;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -111,6 +111,7 @@ public class AquaTableHeaderUI extends BasicTableHeaderUI {
tableColumn.setHeaderRenderer(renderer); tableColumn.setHeaderRenderer(renderer);
} }
@SuppressWarnings("serial") // Superclass is not serializable across versions
class AquaTableCellRenderer extends DefaultTableCellRenderer implements UIResource { class AquaTableCellRenderer extends DefaultTableCellRenderer implements UIResource {
public Component getTableCellRendererComponent(final JTable localTable, final Object value, final boolean isSelected, final boolean hasFocus, final int row, final int column) { public Component getTableCellRendererComponent(final JTable localTable, final Object value, final boolean isSelected, final boolean hasFocus, final int row, final int column) {
if (localTable != null) { if (localTable != null) {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -249,6 +249,7 @@ public class AquaTextFieldSearch {
label.setText(promptText); label.setText(promptText);
} }
@SuppressWarnings("serial") // anonymous class inside
protected static JButton getCancelButton(final JTextComponent c) { protected static JButton getCancelButton(final JTextComponent c) {
final JButton b = createButton(c, getCancelIcon()); final JButton b = createButton(c, getCancelIcon());
b.setName("cancel"); b.setName("cancel");
@ -325,6 +326,7 @@ public class AquaTextFieldSearch {
} }
protected boolean doingLayout; protected boolean doingLayout;
@SuppressWarnings("serial") // anonymous class inside
protected LayoutManager getCustomLayout() { protected LayoutManager getCustomLayout() {
// unfortunately, the default behavior of BorderLayout, which accommodates for margins // unfortunately, the default behavior of BorderLayout, which accommodates for margins
// is not what we want, so we "turn off margins" for layout for layout out our buttons // is not what we want, so we "turn off margins" for layout for layout out our buttons

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -55,6 +55,7 @@ public class AquaToolBarUI extends BasicToolBarUI implements SwingConstants {
} }
/* ToolBarBorder and drag-off handle, based loosly on MetalBumps */ /* ToolBarBorder and drag-off handle, based loosly on MetalBumps */
@SuppressWarnings("serial") // Superclass is not serializable across versions
static class ToolBarBorder extends AbstractBorder implements UIResource, javax.swing.SwingConstants { static class ToolBarBorder extends AbstractBorder implements UIResource, javax.swing.SwingConstants {
protected void fillHandle(final Graphics g, final int x1, final int y1, final int x2, final int y2, final boolean horizontal) { protected void fillHandle(final Graphics g, final int x1, final int y1, final int x2, final int y2, final boolean horizontal) {
g.setColor(UIManager.getColor("ToolBar.borderHandleColor")); g.setColor(UIManager.getColor("ToolBar.borderHandleColor"));

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -493,6 +493,7 @@ public class AquaTreeUI extends BasicTreeUI {
tree.getActionMap().put("aquaFullyCollapseNode", new KeyboardExpandCollapseAction(false, true)); tree.getActionMap().put("aquaFullyCollapseNode", new KeyboardExpandCollapseAction(false, true));
} }
@SuppressWarnings("serial") // Superclass is not serializable across versions
class KeyboardExpandCollapseAction extends AbstractAction { class KeyboardExpandCollapseAction extends AbstractAction {
/** /**
* Determines direction to traverse, 1 means expand, -1 means collapse. * Determines direction to traverse, 1 means expand, -1 means collapse.

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -36,6 +36,7 @@ import sun.awt.SunToolkit;
import sun.lwawt.LWToolkit; import sun.lwawt.LWToolkit;
import sun.lwawt.macosx.*; import sun.lwawt.macosx.*;
@SuppressWarnings("serial") // JDK implementation class
final class ScreenMenu extends Menu final class ScreenMenu extends Menu
implements ContainerListener, ComponentListener, implements ContainerListener, ComponentListener,
ScreenMenuPropertyHandler { ScreenMenuPropertyHandler {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -33,6 +33,7 @@ import java.util.*;
import javax.swing.*; import javax.swing.*;
@SuppressWarnings("serial") // JDK implementation class
public class ScreenMenuBar extends MenuBar implements ContainerListener, ScreenMenuPropertyHandler, ComponentListener { public class ScreenMenuBar extends MenuBar implements ContainerListener, ScreenMenuPropertyHandler, ComponentListener {
static boolean sJMenuBarHasHelpMenus = false; //$ could check by calling getHelpMenu in a try block static boolean sJMenuBarHasHelpMenus = false; //$ could check by calling getHelpMenu in a try block

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -34,6 +34,7 @@ import javax.swing.plaf.ComponentUI;
import sun.lwawt.macosx.CMenuItem; import sun.lwawt.macosx.CMenuItem;
@SuppressWarnings("serial") // JDK implementation class
final class ScreenMenuItem extends MenuItem implements ActionListener, ComponentListener, ScreenMenuPropertyHandler { final class ScreenMenuItem extends MenuItem implements ActionListener, ComponentListener, ScreenMenuPropertyHandler {
ScreenMenuPropertyListener fListener; ScreenMenuPropertyListener fListener;
JMenuItem fMenuItem; JMenuItem fMenuItem;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -36,6 +36,7 @@ import com.apple.laf.AquaMenuItemUI.IndeterminateListener;
import sun.lwawt.macosx.*; import sun.lwawt.macosx.*;
@SuppressWarnings("serial") // JDK implementation class
final class ScreenMenuItemCheckbox extends CheckboxMenuItem implements ActionListener, ComponentListener, ScreenMenuPropertyHandler, ItemListener { final class ScreenMenuItemCheckbox extends CheckboxMenuItem implements ActionListener, ComponentListener, ScreenMenuPropertyHandler, ItemListener {
JMenuItem fMenuItem; JMenuItem fMenuItem;
MenuContainer fParent; MenuContainer fParent;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,6 +28,7 @@ package sun.lwawt.macosx;
import java.awt.*; import java.awt.*;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;
@SuppressWarnings("serial") // JDK implementation class
public class CCustomCursor extends Cursor { public class CCustomCursor extends Cursor {
static Dimension sMaxCursorSize; static Dimension sMaxCursorSize;
static Dimension getMaxCursorSize() { static Dimension getMaxCursorSize() {

View File

@ -33,6 +33,7 @@ import java.awt.Toolkit;
import sun.awt.EmbeddedFrame; import sun.awt.EmbeddedFrame;
import sun.lwawt.LWWindowPeer; import sun.lwawt.LWWindowPeer;
@SuppressWarnings("serial") // JDK implementation class
public class CEmbeddedFrame extends EmbeddedFrame { public class CEmbeddedFrame extends EmbeddedFrame {
private CPlatformResponder responder; private CPlatformResponder responder;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -32,7 +32,7 @@ import java.awt.event.*;
import sun.awt.dnd.SunDragSourceContextPeer; import sun.awt.dnd.SunDragSourceContextPeer;
@SuppressWarnings("serial") // JDK implementation class
class CMouseDragGestureRecognizer extends MouseDragGestureRecognizer { class CMouseDragGestureRecognizer extends MouseDragGestureRecognizer {
// Number of pixels before drag is determined to have started: // Number of pixels before drag is determined to have started:

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -27,6 +27,7 @@ package sun.lwawt.macosx;
import java.awt.*; import java.awt.*;
@SuppressWarnings("serial") // JDK implementation class
public abstract class CPrinterDialog extends Dialog { public abstract class CPrinterDialog extends Dialog {
private final CPrinterJob fPrinterJob; // used from native private final CPrinterJob fPrinterJob; // used from native

View File

@ -29,6 +29,7 @@ package sun.lwawt.macosx;
import java.awt.*; import java.awt.*;
import java.awt.print.*; import java.awt.print.*;
@SuppressWarnings("serial") // JDK implementation class
final class CPrinterJobDialog extends CPrinterDialog { final class CPrinterJobDialog extends CPrinterDialog {
private Pageable fPageable; private Pageable fPageable;
private boolean fAllowPrintToFile; private boolean fAllowPrintToFile;

View File

@ -29,6 +29,7 @@ package sun.lwawt.macosx;
import java.awt.*; import java.awt.*;
import java.awt.print.*; import java.awt.print.*;
@SuppressWarnings("serial") // JDK implementation class
final class CPrinterPageDialog extends CPrinterDialog { final class CPrinterPageDialog extends CPrinterDialog {
private PageFormat fPage; private PageFormat fPage;
private Printable fPainter; private Printable fPainter;

View File

@ -37,6 +37,7 @@ import sun.lwawt.LWWindowPeer;
* The CViewEmbeddedFrame class is used in the SWT_AWT bridge. * The CViewEmbeddedFrame class is used in the SWT_AWT bridge.
* This is a part of public API and should not be renamed or moved * This is a part of public API and should not be renamed or moved
*/ */
@SuppressWarnings("serial") // JDK implementation class
public class CViewEmbeddedFrame extends EmbeddedFrame { public class CViewEmbeddedFrame extends EmbeddedFrame {
private final long nsViewPtr; private final long nsViewPtr;

View File

@ -51,6 +51,7 @@ import sun.awt.image.MultiResolutionImage;
import sun.util.CoreResourceBundleControl; import sun.util.CoreResourceBundleControl;
@SuppressWarnings("serial") // JDK implementation class
final class NamedCursor extends Cursor { final class NamedCursor extends Cursor {
NamedCursor(String name) { NamedCursor(String name) {
super(name); super(name);
@ -141,6 +142,7 @@ public final class LWCToolkit extends LWToolkit {
loadNativeColors(systemColors, appleColors); loadNativeColors(systemColors, appleColors);
} }
@SuppressWarnings("serial") // JDK implementation class
private static class AppleSpecificColor extends Color { private static class AppleSpecificColor extends Color {
private final int index; private final int index;
AppleSpecificColor(int index) { AppleSpecificColor(int index) {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -29,6 +29,7 @@ package sun.lwawt.macosx;
import java.io.*; import java.io.*;
import javax.print.attribute.*; import javax.print.attribute.*;
@SuppressWarnings("serial") // JDK implementation class
public final class NSPrintInfo implements PrintJobAttribute, PrintRequestAttribute, Serializable, Cloneable { public final class NSPrintInfo implements PrintJobAttribute, PrintRequestAttribute, Serializable, Cloneable {
private long fNSPrintInfo; private long fNSPrintInfo;