--- old/src/share/classes/javax/swing/AbstractSpinnerModel.java 2014-02-12 23:37:08.000000000 -0800 +++ new/src/share/classes/javax/swing/AbstractSpinnerModel.java 2014-02-12 23:37:08.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 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 @@ -46,6 +46,7 @@ * @author Hans Muller * @since 1.4 */ +@SuppressWarnings("serial") // Field contents are not serializable across versions public abstract class AbstractSpinnerModel implements SpinnerModel, Serializable { --- old/src/share/classes/javax/swing/ActionPropertyChangeListener.java 2014-02-12 23:37:09.000000000 -0800 +++ new/src/share/classes/javax/swing/ActionPropertyChangeListener.java 2014-02-12 23:37:09.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 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 @@ -50,6 +50,7 @@ * @author Georges Saab * @see AbstractButton */ +@SuppressWarnings("serial") // Bound of type variable is not serializable across versions abstract class ActionPropertyChangeListener implements PropertyChangeListener, Serializable { private static ReferenceQueue queue; --- old/src/share/classes/javax/swing/ComponentInputMap.java 2014-02-12 23:37:09.000000000 -0800 +++ new/src/share/classes/javax/swing/ComponentInputMap.java 2014-02-12 23:37:09.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 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,7 +35,7 @@ * @author Scott Violet * @since 1.3 */ -@SuppressWarnings("serial") +@SuppressWarnings("serial") // Field data not serializable across versions public class ComponentInputMap extends InputMap { /** Component binding is created for. */ private JComponent component; --- old/src/share/classes/javax/swing/DefaultComboBoxModel.java 2014-02-12 23:37:10.000000000 -0800 +++ new/src/share/classes/javax/swing/DefaultComboBoxModel.java 2014-02-12 23:37:10.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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,7 +36,7 @@ * @author Arnaud Weber * @author Tom Santos */ - +@SuppressWarnings("serial") // Superclass is not serializable across versions public class DefaultComboBoxModel extends AbstractListModel implements MutableComboBoxModel, Serializable { Vector objects; Object selectedObject; --- old/src/share/classes/javax/swing/DefaultDesktopManager.java 2014-02-12 23:37:10.000000000 -0800 +++ new/src/share/classes/javax/swing/DefaultDesktopManager.java 2014-02-12 23:37:10.000000000 -0800 @@ -47,6 +47,7 @@ * @author David Kloba * @author Steve Wilson */ +@SuppressWarnings("serial") // No Interesting Non-Transient State public class DefaultDesktopManager implements DesktopManager, java.io.Serializable { final static String HAS_BEEN_ICONIFIED_PROPERTY = "wasIconOnce"; --- old/src/share/classes/javax/swing/DefaultFocusManager.java 2014-02-12 23:37:11.000000000 -0800 +++ new/src/share/classes/javax/swing/DefaultFocusManager.java 2014-02-12 23:37:11.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2008, 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 @@ -46,6 +46,7 @@ * @author Arnaud Weber * @author David Mendenhall */ +@SuppressWarnings("serial") // Obsolete class public class DefaultFocusManager extends FocusManager { final FocusTraversalPolicy gluePolicy = @@ -148,6 +149,7 @@ } } +@SuppressWarnings("serial") // JDK-implementation class final class LegacyLayoutFocusTraversalPolicy extends LayoutFocusTraversalPolicy { --- old/src/share/classes/javax/swing/JColorChooser.java 2014-02-12 23:37:11.000000000 -0800 +++ new/src/share/classes/javax/swing/JColorChooser.java 2014-02-12 23:37:11.000000000 -0800 @@ -606,6 +606,7 @@ * * Note: This needs to be fixed to deal with localization! */ +@SuppressWarnings("serial") // Superclass is not serializable across versions class ColorChooserDialog extends JDialog { private Color initialColor; private JColorChooser chooserPane; @@ -665,6 +666,7 @@ cancelButton.getAccessibleContext().setAccessibleDescription(cancelString); // The following few lines are used to register esc to close the dialog + @SuppressWarnings("serial") // anonymous class Action cancelKeyAction = new AbstractAction() { public void actionPerformed(ActionEvent e) { ((AbstractButton)e.getSource()).fireActionPerformed(e); @@ -729,6 +731,7 @@ chooserPane.setColor(initialColor); } + @SuppressWarnings("serial") // JDK-implementation class class Closer extends WindowAdapter implements Serializable{ public void windowClosing(WindowEvent e) { cancelButton.doClick(0); @@ -737,6 +740,7 @@ } } + @SuppressWarnings("serial") // JDK-implementation class static class DisposeOnClose extends ComponentAdapter implements Serializable{ public void componentHidden(ComponentEvent e) { Window w = (Window)e.getComponent(); @@ -746,6 +750,7 @@ } +@SuppressWarnings("serial") // JDK-implementation class class ColorTracker implements ActionListener, Serializable { JColorChooser chooser; Color color; --- old/src/share/classes/javax/swing/JFileChooser.java 2014-02-12 23:37:12.000000000 -0800 +++ new/src/share/classes/javax/swing/JFileChooser.java 2014-02-12 23:37:12.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2011, 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 @@ -88,6 +88,7 @@ * @author Jeff Dinkins * */ +@SuppressWarnings("serial") // Superclass is not serializable across versions public class JFileChooser extends JComponent implements Accessible { /** @@ -1996,6 +1997,7 @@ * Java Accessibility API appropriate to file chooser user-interface * elements. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions protected class AccessibleJFileChooser extends AccessibleJComponent { /** --- old/src/share/classes/javax/swing/JLayer.java 2014-02-12 23:37:12.000000000 -0800 +++ new/src/share/classes/javax/swing/JLayer.java 2014-02-12 23:37:12.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 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 @@ -148,6 +148,7 @@ * * @author Alexander Potochkin */ +@SuppressWarnings("serial") // Superclass is not serializable across versions public final class JLayer extends JComponent implements Scrollable, PropertyChangeListener, Accessible { @@ -687,6 +688,7 @@ * * @return the AccessibleContext associated with this {@code JLayer}. */ + @SuppressWarnings("serial") // anonymous class public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJComponent() { @@ -825,6 +827,7 @@ * The default glassPane for the {@link javax.swing.JLayer}. * It is a subclass of {@code JPanel} which is non opaque by default. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions private static class DefaultLayerGlassPane extends JPanel { /** * Creates a new {@link DefaultLayerGlassPane} --- old/src/share/classes/javax/swing/LayoutComparator.java 2014-02-12 23:37:13.000000000 -0800 +++ new/src/share/classes/javax/swing/LayoutComparator.java 2014-02-12 23:37:13.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 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 @@ -39,6 +39,7 @@ * * @author David Mendenhall */ +@SuppressWarnings("serial") // JDK-implementation class final class LayoutComparator implements Comparator, java.io.Serializable { private static final int ROW_TOLERANCE = 10; --- old/src/share/classes/javax/swing/LayoutFocusTraversalPolicy.java 2014-02-12 23:37:13.000000000 -0800 +++ new/src/share/classes/javax/swing/LayoutFocusTraversalPolicy.java 2014-02-12 23:37:13.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 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 @@ -47,6 +47,7 @@ * @see java.awt.ComponentOrientation * @since 1.4 */ +@SuppressWarnings("serial") // Parts of superclass are not serializable across versions public class LayoutFocusTraversalPolicy extends SortingFocusTraversalPolicy implements Serializable { @@ -265,6 +266,7 @@ // Create our own subclass and change accept to public so that we can call // accept. +@SuppressWarnings("serial") // JDK-implementation class class SwingDefaultFocusTraversalPolicy extends java.awt.DefaultFocusTraversalPolicy { --- old/src/share/classes/javax/swing/LegacyGlueFocusTraversalPolicy.java 2014-02-12 23:37:14.000000000 -0800 +++ new/src/share/classes/javax/swing/LegacyGlueFocusTraversalPolicy.java 2014-02-12 23:37:14.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 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 @@ -42,6 +42,7 @@ * * @author David Mendenhall */ +@SuppressWarnings("serial") // JDK-implementation class final class LegacyGlueFocusTraversalPolicy extends FocusTraversalPolicy implements Serializable { --- old/src/share/classes/javax/swing/MultiUIDefaults.java 2014-02-12 23:37:15.000000000 -0800 +++ new/src/share/classes/javax/swing/MultiUIDefaults.java 2014-02-12 23:37:15.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2008, 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 @@ -38,6 +38,7 @@ * * @author Hans Muller */ +@SuppressWarnings("serial") // Superclass is not serializable across versions class MultiUIDefaults extends UIDefaults { private UIDefaults[] tables; --- old/src/share/classes/javax/swing/Popup.java 2014-02-12 23:37:15.000000000 -0800 +++ new/src/share/classes/javax/swing/Popup.java 2014-02-12 23:37:15.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 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 @@ -228,6 +228,7 @@ /** * Component used to house window. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class HeavyWeightWindow extends JWindow implements ModalExclude { HeavyWeightWindow(Window parent) { super(parent); @@ -267,6 +268,7 @@ * PopupFactory uses this as a way to know when the Popup shouldn't * be cached based on the Window. */ + @SuppressWarnings("serial") // JDK-implementation class static class DefaultFrame extends Frame { } } --- old/src/share/classes/javax/swing/PopupFactory.java 2014-02-12 23:37:16.000000000 -0800 +++ new/src/share/classes/javax/swing/PopupFactory.java 2014-02-12 23:37:16.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 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 @@ -941,6 +941,7 @@ // This implements SwingHeavyWeight so that repaints on it // are processed by the RepaintManager and SwingPaintEventDispatcher. + @SuppressWarnings("serial") // JDK-implementation class private static class MediumWeightComponent extends Panel implements SwingHeavyWeight { MediumWeightComponent() { --- old/src/share/classes/javax/swing/ProgressMonitor.java 2014-02-12 23:37:16.000000000 -0800 +++ new/src/share/classes/javax/swing/ProgressMonitor.java 2014-02-12 23:37:16.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2006, 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 @@ -153,7 +153,7 @@ } } - + @SuppressWarnings("serial") // Superclass is not serializable across versions private class ProgressOptionPane extends JOptionPane { ProgressOptionPane(Object messageList) { --- old/src/share/classes/javax/swing/SortingFocusTraversalPolicy.java 2014-02-12 23:37:17.000000000 -0800 +++ new/src/share/classes/javax/swing/SortingFocusTraversalPolicy.java 2014-02-12 23:37:17.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 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 @@ -607,6 +607,7 @@ // Create our own subclass and change accept to public so that we can call // accept. +@SuppressWarnings("serial") // JDK-implementation class class SwingContainerOrderFocusTraversalPolicy extends java.awt.ContainerOrderFocusTraversalPolicy { --- old/src/share/classes/javax/swing/SpinnerDateModel.java 2014-02-12 23:37:17.000000000 -0800 +++ new/src/share/classes/javax/swing/SpinnerDateModel.java 2014-02-12 23:37:17.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 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 @@ -86,6 +86,7 @@ * @author Hans Muller * @since 1.4 */ +@SuppressWarnings("serial") // Superclass is not serializable across versions public class SpinnerDateModel extends AbstractSpinnerModel implements Serializable { private Comparable start, end; --- old/src/share/classes/javax/swing/SpinnerListModel.java 2014-02-12 23:37:18.000000000 -0800 +++ new/src/share/classes/javax/swing/SpinnerListModel.java 2014-02-12 23:37:18.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 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 @@ -56,6 +56,7 @@ * @author Hans Muller * @since 1.4 */ +@SuppressWarnings("serial") // Superclass is not serializable across versions public class SpinnerListModel extends AbstractSpinnerModel implements Serializable { private List list; --- old/src/share/classes/javax/swing/SpinnerNumberModel.java 2014-02-12 23:37:18.000000000 -0800 +++ new/src/share/classes/javax/swing/SpinnerNumberModel.java 2014-02-12 23:37:18.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 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 @@ -80,6 +80,7 @@ * @author Hans Muller * @since 1.4 */ +@SuppressWarnings("serial") // Superclass is not serializable across versions public class SpinnerNumberModel extends AbstractSpinnerModel implements Serializable { private Number stepSize, value; --- old/src/share/classes/javax/swing/SwingUtilities.java 2014-02-12 23:37:19.000000000 -0800 +++ new/src/share/classes/javax/swing/SwingUtilities.java 2014-02-12 23:37:19.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2011, 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 @@ -1755,6 +1755,7 @@ private static final Object sharedOwnerFrameKey = new StringBuffer("SwingUtilities.sharedOwnerFrame"); + @SuppressWarnings("serial") // JDK-implementation class static class SharedOwnerFrame extends Frame implements WindowListener { public void addNotify() { super.addNotify(); --- old/src/share/classes/javax/swing/SwingWorker.java 2014-02-12 23:37:19.000000000 -0800 +++ new/src/share/classes/javax/swing/SwingWorker.java 2014-02-12 23:37:19.000000000 -0800 @@ -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 @@ -843,6 +843,7 @@ } } + @SuppressWarnings("serial") // JDK-implementation class private class SwingWorkerPropertyChangeSupport extends PropertyChangeSupport { SwingWorkerPropertyChangeSupport(Object source) { --- old/src/share/classes/javax/swing/colorchooser/CenterLayout.java 2014-02-12 23:37:20.000000000 -0800 +++ new/src/share/classes/javax/swing/colorchooser/CenterLayout.java 2014-02-12 23:37:20.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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,8 @@ * @author Steve Wilson */ class CenterLayout implements LayoutManager, Serializable { + private static final long serialVersionUID = 6948189423011048265L; + public void addLayoutComponent(String name, Component comp) { } public void removeLayoutComponent(Component comp) { } --- old/src/share/classes/javax/swing/colorchooser/ColorChooserPanel.java 2014-02-12 23:37:20.000000000 -0800 +++ new/src/share/classes/javax/swing/colorchooser/ColorChooserPanel.java 2014-02-12 23:37:20.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 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,8 +38,8 @@ import javax.swing.JLabel; import javax.swing.SwingConstants; +@SuppressWarnings("serial") // Superclass is not serializable across versions final class ColorChooserPanel extends AbstractColorChooserPanel implements PropertyChangeListener { - private static final int MASK = 0xFF000000; private final ColorModel model; private final ColorPanel panel; --- old/src/share/classes/javax/swing/colorchooser/ColorPanel.java 2014-02-12 23:37:21.000000000 -0800 +++ new/src/share/classes/javax/swing/colorchooser/ColorPanel.java 2014-02-12 23:37:21.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 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 @@ -39,6 +39,7 @@ import javax.swing.border.EmptyBorder; import javax.swing.JSpinner.DefaultEditor; +@SuppressWarnings("serial") // Superclass is not serializable across versions final class ColorPanel extends JPanel implements ActionListener { private final SlidingSpinner[] spinners = new SlidingSpinner[5]; --- old/src/share/classes/javax/swing/colorchooser/DefaultColorSelectionModel.java 2014-02-12 23:37:21.000000000 -0800 +++ new/src/share/classes/javax/swing/colorchooser/DefaultColorSelectionModel.java 2014-02-12 23:37:21.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2001, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -37,6 +37,7 @@ * * @see java.awt.Color */ +@SuppressWarnings("serial") // Same-version serialization only public class DefaultColorSelectionModel implements ColorSelectionModel, Serializable { /** --- old/src/share/classes/javax/swing/colorchooser/DefaultSwatchChooserPanel.java 2014-02-12 23:37:22.000000000 -0800 +++ new/src/share/classes/javax/swing/colorchooser/DefaultSwatchChooserPanel.java 2014-02-12 23:37:22.000000000 -0800 @@ -266,8 +266,7 @@ } - - +@SuppressWarnings("serial") // Same-version serialization only class SwatchPanel extends JPanel { protected Color[] colors; @@ -438,6 +437,7 @@ } +@SuppressWarnings("serial") // Superclass is not serializable across versions class RecentSwatchPanel extends SwatchPanel { protected void initValues() { swatchSize = UIManager.getDimension("ColorChooser.swatchesRecentSwatchSize", getLocale()); @@ -465,6 +465,7 @@ } +@SuppressWarnings("serial") // Superclass is not serializable across versions class MainSwatchPanel extends SwatchPanel { --- old/src/share/classes/javax/swing/colorchooser/DiagramComponent.java 2014-02-12 23:37:22.000000000 -0800 +++ new/src/share/classes/javax/swing/colorchooser/DiagramComponent.java 2014-02-12 23:37:22.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 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 @@ -34,6 +34,7 @@ import java.awt.image.BufferedImage; import javax.swing.JComponent; +@SuppressWarnings("serial") // Superclass is not serializable across versions final class DiagramComponent extends JComponent implements MouseListener, MouseMotionListener { private final ColorPanel panel; --- old/src/share/classes/javax/swing/colorchooser/SmartGridLayout.java 2014-02-12 23:37:23.000000000 -0800 +++ new/src/share/classes/javax/swing/colorchooser/SmartGridLayout.java 2014-02-12 23:37:23.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2001, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -39,6 +39,7 @@ * @author Steve Wilson */ class SmartGridLayout implements LayoutManager, Serializable { + private static final long serialVersionUID = -8480277825494401985L; int rows = 2; int columns = 2; --- old/src/share/classes/javax/swing/colorchooser/ValueFormatter.java 2014-02-12 23:37:23.000000000 -0800 +++ new/src/share/classes/javax/swing/colorchooser/ValueFormatter.java 2014-02-12 23:37:23.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 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.text.DefaultFormatterFactory; import javax.swing.text.DocumentFilter; +@SuppressWarnings("serial") // Same-version serialization only final class ValueFormatter extends AbstractFormatter implements FocusListener, Runnable { static void init(int length, boolean hex, JFormattedTextField text) { --- old/src/share/classes/javax/swing/event/RowSorterEvent.java 2014-02-12 23:37:24.000000000 -0800 +++ new/src/share/classes/javax/swing/event/RowSorterEvent.java 2014-02-12 23:37:24.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 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 @@ -41,6 +41,8 @@ * @since 1.6 */ public class RowSorterEvent extends java.util.EventObject { + private static final long serialVersionUID = -2701905455516718736L; + private Type type; private int[] oldViewToModel; --- old/src/share/classes/javax/swing/event/TreeSelectionEvent.java 2014-02-12 23:37:25.000000000 -0800 +++ new/src/share/classes/javax/swing/event/TreeSelectionEvent.java 2014-02-12 23:37:24.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2006, 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 @@ -49,6 +49,7 @@ * * @author Scott Violet */ +@SuppressWarnings("serial") // Same-version serialization only public class TreeSelectionEvent extends EventObject { /** Paths this event represents. */ --- old/src/share/classes/javax/swing/filechooser/FileSystemView.java 2014-02-12 23:37:25.000000000 -0800 +++ new/src/share/classes/javax/swing/filechooser/FileSystemView.java 2014-02-12 23:37:25.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -583,6 +583,8 @@ static class FileSystemRoot extends File { + private static final long serialVersionUID = 718975903156136977L; + public FileSystemRoot(File f) { super(f,""); } @@ -775,6 +777,7 @@ return super.createFileObject(path); } + @SuppressWarnings("serial") // anonymous class protected File createFileSystemRoot(File f) { // Problem: Removable drives on Windows return false on f.exists() // Workaround: Override exists() to always return true. --- old/src/share/classes/javax/swing/plaf/ActionMapUIResource.java 2014-02-12 23:37:26.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/ActionMapUIResource.java 2014-02-12 23:37:25.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 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 @@ * @author Scott Violet * @since 1.3 */ +@SuppressWarnings("serial") // Superclass is not serializable across versions public class ActionMapUIResource extends ActionMap implements UIResource { public ActionMapUIResource() { } --- old/src/share/classes/javax/swing/plaf/ComponentInputMapUIResource.java 2014-02-12 23:37:26.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/ComponentInputMapUIResource.java 2014-02-12 23:37:26.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 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 @@ * @author Scott Violet * @since 1.3 */ +@SuppressWarnings("serial") // Superclass is not serializable across versions public class ComponentInputMapUIResource extends ComponentInputMap implements UIResource { public ComponentInputMapUIResource(JComponent component) { super(component); --- old/src/share/classes/javax/swing/plaf/InputMapUIResource.java 2014-02-12 23:37:26.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/InputMapUIResource.java 2014-02-12 23:37:26.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 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 @@ * @author Scott Violet * @since 1.3 */ +@SuppressWarnings("serial") // JDK-implementation class public class InputMapUIResource extends InputMap implements UIResource { public InputMapUIResource() { } --- old/src/share/classes/javax/swing/plaf/LayerUI.java 2014-02-12 23:37:27.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/LayerUI.java 2014-02-12 23:37:27.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 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 @@ -60,6 +60,7 @@ */ public class LayerUI extends ComponentUI implements Serializable { + private static final long serialVersionUID = 654939289258160655L; private final PropertyChangeSupport propertyChangeSupport = new PropertyChangeSupport(this); --- old/src/share/classes/javax/swing/plaf/basic/BasicBorders.java 2014-02-12 23:37:27.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/basic/BasicBorders.java 2014-02-12 23:37:27.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2010, 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 @@ -144,6 +144,7 @@ * Special thin border for rollover toolbar buttons. * @since 1.4 */ + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class RolloverButtonBorder extends ButtonBorder { public RolloverButtonBorder(Color shadow, Color darkShadow, @@ -196,6 +197,7 @@ * Note: This is identical to the package private class * MetalBorders.RolloverMarginBorder and should probably be consolidated. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class RolloverMarginBorder extends EmptyBorder { public RolloverMarginBorder() { @@ -225,6 +227,7 @@ } } + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class ButtonBorder extends AbstractBorder implements UIResource { protected Color shadow; protected Color darkShadow; @@ -267,6 +270,7 @@ } + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class ToggleButtonBorder extends ButtonBorder { public ToggleButtonBorder(Color shadow, Color darkShadow, @@ -288,6 +292,7 @@ } } + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class RadioButtonBorder extends ButtonBorder { public RadioButtonBorder(Color shadow, Color darkShadow, @@ -324,6 +329,7 @@ } } + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class MenuBarBorder extends AbstractBorder implements UIResource { private Color shadow; private Color highlight; @@ -350,6 +356,7 @@ } } + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class MarginBorder extends AbstractBorder implements UIResource { public Insets getBorderInsets(Component c, Insets insets) { Insets margin = null; @@ -377,6 +384,7 @@ } } + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class FieldBorder extends AbstractBorder implements UIResource { protected Color shadow; protected Color darkShadow; --- old/src/share/classes/javax/swing/plaf/basic/BasicColorChooserUI.java 2014-02-12 23:37:28.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/basic/BasicColorChooserUI.java 2014-02-12 23:37:28.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2010, 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 @@ -345,6 +345,7 @@ } } + @SuppressWarnings("serial") // JDK-implementation class static class ColorTransferHandler extends TransferHandler implements UIResource { ColorTransferHandler() { --- old/src/share/classes/javax/swing/plaf/basic/BasicComboBoxEditor.java 2014-02-12 23:37:28.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/basic/BasicComboBoxEditor.java 2014-02-12 23:37:28.000000000 -0800 @@ -129,6 +129,7 @@ editor.removeActionListener(l); } + @SuppressWarnings("serial") // Superclass is not serializable across versions static class BorderlessTextField extends JTextField { public BorderlessTextField(String value,int n) { super(value,n); --- old/src/share/classes/javax/swing/plaf/basic/BasicDesktopPaneUI.java 2014-02-12 23:37:29.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/basic/BasicDesktopPaneUI.java 2014-02-12 23:37:29.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2006, 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 @@ -304,6 +304,7 @@ /** * The default DesktopManager installed by the UI. */ + @SuppressWarnings("serial") // JDK-implementation class private class BasicDesktopManager extends DefaultDesktopManager implements UIResource { } @@ -632,6 +633,7 @@ * Handles restoring a minimized or maximized internal frame. * @since 1.3 */ + @SuppressWarnings("serial") // Superclass is not serializable across versions protected class OpenAction extends AbstractAction { public void actionPerformed(ActionEvent evt) { JDesktopPane dp = (JDesktopPane)evt.getSource(); @@ -646,6 +648,7 @@ /** * Handles closing an internal frame. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions protected class CloseAction extends AbstractAction { public void actionPerformed(ActionEvent evt) { JDesktopPane dp = (JDesktopPane)evt.getSource(); @@ -664,6 +667,7 @@ /** * Handles minimizing an internal frame. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions protected class MinimizeAction extends AbstractAction { public void actionPerformed(ActionEvent evt) { JDesktopPane dp = (JDesktopPane)evt.getSource(); @@ -682,6 +686,7 @@ /** * Handles maximizing an internal frame. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions protected class MaximizeAction extends AbstractAction { public void actionPerformed(ActionEvent evt) { JDesktopPane dp = (JDesktopPane)evt.getSource(); @@ -700,6 +705,7 @@ /** * Handles navigating to the next internal frame. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions protected class NavigateAction extends AbstractAction { public void actionPerformed(ActionEvent evt) { JDesktopPane dp = (JDesktopPane)evt.getSource(); --- old/src/share/classes/javax/swing/plaf/basic/BasicDirectoryModel.java 2014-02-12 23:37:29.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/basic/BasicDirectoryModel.java 2014-02-12 23:37:29.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2009, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -40,6 +40,7 @@ * * @author Jeff Dinkins */ +@SuppressWarnings("serial") // Superclass is not serializable across versions public class BasicDirectoryModel extends AbstractListModel implements PropertyChangeListener { private JFileChooser filechooser = null; --- old/src/share/classes/javax/swing/plaf/basic/BasicFileChooserUI.java 2014-02-12 23:37:30.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/basic/BasicFileChooserUI.java 2014-02-12 23:37:30.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -752,6 +752,7 @@ /** * Creates a new folder. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions protected class NewFolderAction extends AbstractAction { protected NewFolderAction() { super(FilePane.ACTION_NEW_FOLDER); @@ -794,6 +795,7 @@ /** * Acts on the "home" key event or equivalent event. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions protected class GoHomeAction extends AbstractAction { protected GoHomeAction() { super("Go Home"); @@ -804,6 +806,7 @@ } } + @SuppressWarnings("serial") // Superclass is not serializable across versions protected class ChangeToParentDirectoryAction extends AbstractAction { protected ChangeToParentDirectoryAction() { super("Go Up"); @@ -817,6 +820,7 @@ /** * Responds to an Open or Save request */ + @SuppressWarnings("serial") // Superclass is not serializable across versions protected class ApproveSelectionAction extends AbstractAction { protected ApproveSelectionAction() { super(FilePane.ACTION_APPROVE_SELECTION); @@ -1125,6 +1129,7 @@ /** * Responds to a cancel request. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions protected class CancelSelectionAction extends AbstractAction { public void actionPerformed(ActionEvent e) { getFileChooser().cancelSelection(); @@ -1134,6 +1139,7 @@ /** * Rescans the files in the current directory */ + @SuppressWarnings("serial") // Superclass is not serializable across versions protected class UpdateAction extends AbstractAction { public void actionPerformed(ActionEvent e) { JFileChooser fc = getFileChooser(); @@ -1286,6 +1292,7 @@ * Data transfer support for the file chooser. Since files are currently presented * as a list, the list support is reused with the added flavor of DataFlavor.javaFileListFlavor */ + @SuppressWarnings("serial") // JDK-implementation class static class FileTransferHandler extends TransferHandler implements UIResource { /** --- old/src/share/classes/javax/swing/plaf/basic/BasicHTML.java 2014-02-12 23:37:30.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/basic/BasicHTML.java 2014-02-12 23:37:30.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -276,6 +276,7 @@ * provided by HTMLEditorKit. * */ + @SuppressWarnings("serial") // JDK-implementation class static class BasicEditorKit extends HTMLEditorKit { /** Shared base style for all documents created by us use. */ private static StyleSheet defaultStyles; @@ -345,6 +346,7 @@ * is overridden to return the foreground property from the Component this * was created for. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class BasicDocument extends HTMLDocument { /** The host, that is where we are rendering. */ // private JComponent host; --- old/src/share/classes/javax/swing/plaf/basic/BasicListUI.java 2014-02-12 23:37:31.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/basic/BasicListUI.java 2014-02-12 23:37:31.000000000 -0800 @@ -2834,6 +2834,7 @@ private static final TransferHandler defaultTransferHandler = new ListTransferHandler(); + @SuppressWarnings("serial") // Superclass is a JDK-implementation class static class ListTransferHandler extends TransferHandler implements UIResource { /** --- old/src/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java 2014-02-12 23:37:32.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java 2014-02-12 23:37:31.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2008, 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 @@ -394,6 +394,7 @@ if (nl >= 0) { // break up newlines if (nl == 0) { + @SuppressWarnings("serial") // anonymous class JPanel breakPanel = new JPanel() { public Dimension getPreferredSize() { Font f = getFont(); @@ -1339,6 +1340,7 @@ * change to the JOptionPane, but we also want additional bindings * (those of the JRootPane) to be processed as well. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions private static class MultiplexingTextField extends JTextField { private KeyStroke[] strokes; @@ -1432,6 +1434,7 @@ return button; } + @SuppressWarnings("serial") // Superclass is not serializable across versions private static class ConstrainedButton extends JButton { int minimumWidth; --- old/src/share/classes/javax/swing/plaf/basic/BasicRootPaneUI.java 2014-02-12 23:37:32.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/basic/BasicRootPaneUI.java 2014-02-12 23:37:32.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 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 @@ -240,6 +240,7 @@ } } + @SuppressWarnings("serial") // JDK-implementation class private static class RootPaneInputMap extends ComponentInputMapUIResource { public RootPaneInputMap(JComponent c) { super(c); --- old/src/share/classes/javax/swing/plaf/basic/BasicSliderUI.java 2014-02-12 23:37:33.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/basic/BasicSliderUI.java 2014-02-12 23:37:32.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2010, 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 @@ -1894,6 +1894,7 @@ * This class should be treated as a "protected" inner class. * Instantiate it only within subclasses of Foo. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions public class ActionScroller extends AbstractAction { // NOTE: This class exists only for backward compatibility. All // its functionality has been moved into Actions. If you need to add @@ -1927,6 +1928,7 @@ /** * A static version of the above. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class SharedActionScroller extends AbstractAction { // NOTE: This class exists only for backward compatibility. All // its functionality has been moved into Actions. If you need to add --- old/src/share/classes/javax/swing/plaf/basic/BasicSpinnerUI.java 2014-02-12 23:37:33.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/basic/BasicSpinnerUI.java 2014-02-12 23:37:33.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 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 @@ -601,6 +601,7 @@ * so it doesn't have any state that persists beyond the limits * of a single button pressed/released gesture. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions private static class ArrowButtonHandler extends AbstractAction implements FocusListener, MouseListener, UIResource { final javax.swing.Timer autoRepeatTimer; --- old/src/share/classes/javax/swing/plaf/basic/BasicSplitPaneUI.java 2014-02-12 23:37:34.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/basic/BasicSplitPaneUI.java 2014-02-12 23:37:33.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2011, 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 @@ -829,6 +829,7 @@ * Returns the default non continuous layout divider, which is an * instance of {@code Canvas} that fills in the background with dark gray. */ + @SuppressWarnings("serial") // anonymous class protected Component createDefaultNonContinuousLayoutDivider() { return new Canvas() { public void paint(Graphics g) { --- old/src/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java 2014-02-12 23:37:34.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java 2014-02-12 23:37:34.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2010, 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 @@ -3449,6 +3449,7 @@ } + @SuppressWarnings("serial") // Superclass is not serializable across versions private class ScrollableTabViewport extends JViewport implements UIResource { public ScrollableTabViewport() { super(); @@ -3463,6 +3464,7 @@ } } + @SuppressWarnings("serial") // Superclass is not serializable across versions private class ScrollableTabPanel extends JPanel implements UIResource { public ScrollableTabPanel() { super(null); @@ -3493,6 +3495,7 @@ } } + @SuppressWarnings("serial") // Superclass is not serializable across versions private class ScrollableTabButton extends BasicArrowButton implements UIResource, SwingConstants { public ScrollableTabButton(int direction) { @@ -3818,6 +3821,7 @@ return htmlViews; } + @SuppressWarnings("serial") // Superclass is not serializable across versions private class TabContainer extends JPanel implements UIResource { private boolean notifyTabbedPane = true; @@ -3862,6 +3866,7 @@ } } + @SuppressWarnings("serial") // Superclass is not serializable across versions private class CroppedEdge extends JPanel implements UIResource { private Shape shape; private int tabIndex; --- old/src/share/classes/javax/swing/plaf/basic/BasicTableUI.java 2014-02-12 23:37:35.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/basic/BasicTableUI.java 2014-02-12 23:37:35.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, 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 @@ -2134,6 +2134,7 @@ private static final TransferHandler defaultTransferHandler = new TableTransferHandler(); + @SuppressWarnings("serial") // JDK-implementation class static class TableTransferHandler extends TransferHandler implements UIResource { /** --- old/src/share/classes/javax/swing/plaf/basic/BasicToolBarUI.java 2014-02-12 23:37:35.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/basic/BasicToolBarUI.java 2014-02-12 23:37:35.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2008, 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 @@ -470,11 +470,13 @@ */ protected JFrame createFloatingFrame(JToolBar toolbar) { Window window = SwingUtilities.getWindowAncestor(toolbar); + @SuppressWarnings("serial") // anonymous class JFrame frame = new JFrame(toolbar.getName(), (window != null) ? window.getGraphicsConfiguration() : null) { // Override createRootPane() to automatically resize // the frame when contents change protected JRootPane createRootPane() { + @SuppressWarnings("serial") // anonymous class JRootPane rootPane = new JRootPane() { private boolean packing = false; @@ -505,6 +507,7 @@ * @since 1.4 */ protected RootPaneContainer createFloatingWindow(JToolBar toolbar) { + @SuppressWarnings("serial") // Superclass is not serializable across versions class ToolBarDialog extends JDialog { public ToolBarDialog(Frame owner, String title, boolean modal) { super(owner, title, modal); @@ -517,6 +520,7 @@ // Override createRootPane() to automatically resize // the frame when contents change protected JRootPane createRootPane() { + @SuppressWarnings("serial") // anonymous class JRootPane rootPane = new JRootPane() { private boolean packing = false; @@ -1372,6 +1376,7 @@ protected class DragWindow extends Window { + private static final long serialVersionUID = 3491230175763330205L; Color borderColor = Color.gray; int orientation = toolBar.getOrientation(); Point offset; // offset of the mouse cursor inside the DragWindow --- old/src/share/classes/javax/swing/plaf/basic/BasicTreeUI.java 2014-02-12 23:37:36.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/basic/BasicTreeUI.java 2014-02-12 23:37:36.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, 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 @@ -2916,6 +2916,7 @@ * Will toggle the expandedness of a node, as well as potentially * incrementing the selection. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions public class TreeTraverseAction extends AbstractAction { /** Determines direction to traverse, 1 means expand, -1 means * collapse. */ @@ -2948,6 +2949,7 @@ /** TreePageAction handles page up and page down events. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions public class TreePageAction extends AbstractAction { /** Specifies the direction to adjust the selection by. */ protected int direction; @@ -2983,6 +2985,7 @@ /** TreeIncrementAction is used to handle up/down actions. Selection * is moved up or down based on direction. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions public class TreeIncrementAction extends AbstractAction { /** Specifies the direction to adjust the selection by. */ protected int direction; @@ -3020,6 +3023,7 @@ * Scrolls either the first or last cell to be visible based on * direction. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions public class TreeHomeAction extends AbstractAction { protected int direction; /** Set to true if append to selection. */ @@ -3054,6 +3058,7 @@ /** * For the first selected row expandedness will be toggled. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions public class TreeToggleAction extends AbstractAction { public TreeToggleAction(String name) { } @@ -3073,6 +3078,7 @@ /** * ActionListener that invokes cancelEditing when action performed. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions public class TreeCancelEditingAction extends AbstractAction { public TreeCancelEditingAction(String name) { } @@ -3185,6 +3191,7 @@ private static final TransferHandler defaultTransferHandler = new TreeTransferHandler(); + @SuppressWarnings("serial") // JDK-implementation class static class TreeTransferHandler extends TransferHandler implements UIResource, Comparator { private JTree tree; --- old/src/share/classes/javax/swing/plaf/basic/CenterLayout.java 2014-02-12 23:37:36.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/basic/CenterLayout.java 2014-02-12 23:37:36.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2003, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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,8 @@ * @author Steve Wilson */ class CenterLayout implements LayoutManager, Serializable { + private static final long serialVersionUID = -6757819709502094542L; + public void addLayoutComponent(String name, Component comp) { } public void removeLayoutComponent(Component comp) { } --- old/src/share/classes/javax/swing/plaf/basic/DefaultMenuLayout.java 2014-02-12 23:37:37.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/basic/DefaultMenuLayout.java 2014-02-12 23:37:37.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -39,7 +39,7 @@ * * @author Georges Saab */ - +@SuppressWarnings("serial") // Superclass is not serializable across versions public class DefaultMenuLayout extends BoxLayout implements UIResource { public DefaultMenuLayout(Container target, int axis) { super(target, axis); --- old/src/share/classes/javax/swing/plaf/basic/LazyActionMap.java 2014-02-12 23:37:37.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/basic/LazyActionMap.java 2014-02-12 23:37:37.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2008, 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 @@ -36,6 +36,8 @@ * @author Scott Violet */ class LazyActionMap extends ActionMapUIResource { + private static final long serialVersionUID = -7235747077122712304L; + /** * Object to invoke loadActionMap on. This may be * a Class object. --- old/src/share/classes/javax/swing/plaf/metal/MetalBorders.java 2014-02-12 23:37:38.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/metal/MetalBorders.java 2014-02-12 23:37:38.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -56,7 +56,7 @@ static Object NO_BUTTON_ROLLOVER = new StringUIClientPropertyKey("NoButtonRollover"); - + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class Flush3DBorder extends AbstractBorder implements UIResource{ public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { @@ -73,6 +73,7 @@ } } + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class ButtonBorder extends AbstractBorder implements UIResource { protected static Insets borderInsets = new Insets( 3, 3, 3, 3 ); @@ -187,6 +188,7 @@ } } + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class InternalFrameBorder extends AbstractBorder implements UIResource { private static final int corner = 14; @@ -248,6 +250,7 @@ * Border for a Frame. * @since 1.4 */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class FrameBorder extends AbstractBorder implements UIResource { private static final int corner = 14; @@ -310,6 +313,7 @@ * Border for a Frame. * @since 1.4 */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class DialogBorder extends AbstractBorder implements UIResource { private static final int corner = 14; @@ -403,6 +407,7 @@ * Border for an Error Dialog. * @since 1.4 */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class ErrorDialogBorder extends DialogBorder implements UIResource { protected Color getActiveBackground() { @@ -416,6 +421,7 @@ * JColorChooser.. * @since 1.4 */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class QuestionDialogBorder extends DialogBorder implements UIResource { protected Color getActiveBackground() { @@ -428,6 +434,7 @@ * Border for a Warning Dialog. * @since 1.4 */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class WarningDialogBorder extends DialogBorder implements UIResource { protected Color getActiveBackground() { @@ -440,6 +447,7 @@ * Border for a Palette. * @since 1.3 */ + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class PaletteBorder extends AbstractBorder implements UIResource { int titleHeight = 0; @@ -462,6 +470,7 @@ } } + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class OptionDialogBorder extends AbstractBorder implements UIResource { int titleHeight = 0; @@ -523,7 +532,7 @@ } } - + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class MenuBarBorder extends AbstractBorder implements UIResource { protected static Insets borderInsets = new Insets( 1, 0, 1, 0 ); @@ -560,6 +569,7 @@ } } + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class MenuItemBorder extends AbstractBorder implements UIResource { protected static Insets borderInsets = new Insets( 2, 2, 2, 2 ); @@ -607,6 +617,7 @@ } } + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class PopupMenuBorder extends AbstractBorder implements UIResource { protected static Insets borderInsets = new Insets( 3, 1, 2, 1 ); @@ -631,7 +642,7 @@ } } - + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class RolloverButtonBorder extends ButtonBorder { public void paintBorder( Component c, Graphics g, int x, int y, int w, int h ) { @@ -652,6 +663,7 @@ * Note: This is identical to the package private class * BasicBorders.RolloverMarginBorder and should probably be consolidated. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class RolloverMarginBorder extends EmptyBorder { public RolloverMarginBorder() { @@ -681,6 +693,7 @@ } } + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class ToolBarBorder extends AbstractBorder implements UIResource, SwingConstants { protected MetalBumps bumps = new MetalBumps( 10, 10, @@ -808,6 +821,7 @@ return textFieldBorder; } + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class TextFieldBorder extends Flush3DBorder { public void paintBorder(Component c, Graphics g, int x, int y, @@ -832,6 +846,7 @@ } } + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class ScrollPaneBorder extends AbstractBorder implements UIResource { public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { @@ -892,6 +907,7 @@ /** * @since 1.3 */ + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class ToggleButtonBorder extends ButtonBorder { public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { AbstractButton button = (AbstractButton)c; @@ -924,6 +940,7 @@ * Border for a Table Header * @since 1.3 */ + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class TableHeaderBorder extends javax.swing.border.AbstractBorder { protected Insets editorBorderInsets = new Insets( 2, 2, 2, 0 ); --- old/src/share/classes/javax/swing/plaf/metal/MetalComboBoxIcon.java 2014-02-12 23:37:38.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/metal/MetalComboBoxIcon.java 2014-02-12 23:37:38.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2000, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -41,6 +41,7 @@ * @author Tom Santos */ public class MetalComboBoxIcon implements Icon, Serializable { + private static final long serialVersionUID = 4005527431004205018L; /** * Paints the horizontal bars for the --- old/src/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java 2014-02-12 23:37:39.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java 2014-02-12 23:37:39.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -234,7 +234,8 @@ topPanel.add(lookInLabel, BorderLayout.BEFORE_LINE_BEGINS); // CurrentDir ComboBox - directoryComboBox = new JComboBox() { + @SuppressWarnings("serial") // anonymous class + JComboBox tmp1 = new JComboBox() { public Dimension getPreferredSize() { Dimension d = super.getPreferredSize(); // Must be small enough to not affect total width. @@ -242,6 +243,7 @@ return d; } }; + directoryComboBox = tmp1; directoryComboBox.putClientProperty(AccessibleContext.ACCESSIBLE_DESCRIPTION_PROPERTY, lookInLabelText); directoryComboBox.putClientProperty( "JComboBox.isTableCellEditor", Boolean.TRUE ); @@ -380,11 +382,13 @@ populateFileNameLabel(); fileNamePanel.add(fileNameLabel); - fileNameTextField = new JTextField(35) { + @SuppressWarnings("serial") // anonymous class + JTextField tmp2 = new JTextField(35) { public Dimension getMaximumSize() { return new Dimension(Short.MAX_VALUE, super.getPreferredSize().height); } }; + fileNameTextField = tmp2; fileNamePanel.add(fileNameTextField); fileNameLabel.setLabelFor(fileNameTextField); fileNameTextField.addFocusListener( @@ -534,6 +538,7 @@ } // Obsolete class, not used in this version. + @SuppressWarnings("serial") // Superclass is not serializable across versions protected class FileRenderer extends DefaultListCellRenderer { } @@ -853,6 +858,7 @@ // // Renderer for DirectoryComboBox // + @SuppressWarnings("serial") // Superclass is not serializable across versions class DirectoryComboBoxRenderer extends DefaultListCellRenderer { IndentIcon ii = new IndentIcon(); public Component getListCellRendererComponent(JList list, Object value, @@ -910,6 +916,7 @@ /** * Data model for a type-face selection combo-box. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions protected class DirectoryComboBoxModel extends AbstractListModel implements ComboBoxModel { Vector directories = new Vector(); int[] depths = null; @@ -1042,6 +1049,7 @@ /** * Render different type sizes and styles. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions public class FilterComboBoxRenderer extends DefaultListCellRenderer { public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, @@ -1067,6 +1075,7 @@ /** * Data model for a type-face selection combo-box. */ + @SuppressWarnings("serial") // anonymous class protected class FilterComboBoxModel extends AbstractFilterComboBoxModel { protected JFileChooser getFileChooser() { return MetalFileChooserUI.this.getFileChooser(); @@ -1084,6 +1093,7 @@ /** * Acts when DirectoryComboBox has changed the selected item. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions protected class DirectoryComboBoxAction extends AbstractAction { protected DirectoryComboBoxAction() { super("DirectoryComboBoxAction"); @@ -1184,6 +1194,7 @@ } } + @SuppressWarnings("serial") // Superclass is not serializable across versions private class AlignedLabel extends JLabel { private AlignedLabel[] group; private int maxWidth = 0; --- old/src/share/classes/javax/swing/plaf/metal/MetalInternalFrameTitlePane.java 2014-02-12 23:37:40.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/metal/MetalInternalFrameTitlePane.java 2014-02-12 23:37:40.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -43,7 +43,7 @@ * @author Brian Beck * @since 1.3 */ - +@SuppressWarnings("serial") // Superclass is not serializable across versions public class MetalInternalFrameTitlePane extends BasicInternalFrameTitlePane { protected boolean isPalette = false; --- old/src/share/classes/javax/swing/plaf/metal/MetalTitlePane.java 2014-02-12 23:37:40.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/metal/MetalTitlePane.java 2014-02-12 23:37:40.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 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 @@ -49,6 +49,7 @@ * @author Terry Kellerman * @since 1.4 */ +@SuppressWarnings("serial") // Superclass is not serializable across versions class MetalTitlePane extends JComponent { private static final Border handyEmptyBorder = new EmptyBorder(0,0,0,0); private static final int IMAGE_HEIGHT = 16; @@ -781,6 +782,7 @@ /** * Actions used to close the Window. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions private class CloseAction extends AbstractAction { public CloseAction() { super(UIManager.getString("MetalTitlePane.closeTitle", @@ -796,6 +798,7 @@ /** * Actions used to iconfiy the Frame. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions private class IconifyAction extends AbstractAction { public IconifyAction() { super(UIManager.getString("MetalTitlePane.iconifyTitle", @@ -811,6 +814,7 @@ /** * Actions used to restore the Frame. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions private class RestoreAction extends AbstractAction { public RestoreAction() { super(UIManager.getString @@ -826,6 +830,7 @@ /** * Actions used to restore the Frame. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions private class MaximizeAction extends AbstractAction { public MaximizeAction() { super(UIManager.getString("MetalTitlePane.maximizeTitle", @@ -843,6 +848,7 @@ * image to draw from the Frame associated with the * JRootPane. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions private class SystemMenuBar extends JMenuBar { public void paint(Graphics g) { if (isOpaque()) { --- old/src/share/classes/javax/swing/plaf/metal/OceanTheme.java 2014-02-12 23:37:41.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/metal/OceanTheme.java 2014-02-12 23:37:40.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2006, 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 @@ -51,6 +51,7 @@ * @since 1.5 * @see MetalLookAndFeel#setCurrentTheme */ +@SuppressWarnings("serial") // Superclass is not serializable across versions public class OceanTheme extends DefaultMetalTheme { private static final ColorUIResource PRIMARY1 = new ColorUIResource(0x6382BF); @@ -98,6 +99,7 @@ // InternalFrame Icon // Delegates to different icons based on button state + @SuppressWarnings("serial") // Superclass is not serializable across versions private static class IFIcon extends IconUIResource { private Icon pressed; --- old/src/share/classes/javax/swing/plaf/multi/MultiLookAndFeel.java 2014-02-12 23:37:41.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/multi/MultiLookAndFeel.java 2014-02-12 23:37:41.000000000 -0800 @@ -294,6 +294,7 @@ * emits error messages when it cannot find a UI class in the * LAF. */ +@SuppressWarnings("serial") // Superclass is not serializable across versions class MultiUIDefaults extends UIDefaults { MultiUIDefaults(int initialCapacity, float loadFactor) { super(initialCapacity, loadFactor); --- old/src/share/classes/javax/swing/plaf/nimbus/DerivedColor.java 2014-02-12 23:37:42.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/nimbus/DerivedColor.java 2014-02-12 23:37:41.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2006, 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 @@ -39,6 +39,8 @@ * @author Jasper Potts */ class DerivedColor extends Color { + private static final long serialVersionUID = 2943692070465976766L; + private final String uiDefaultParentName; private final float hOffset, sOffset, bOffset; private final int aOffset; @@ -174,6 +176,8 @@ } static class UIResource extends DerivedColor implements javax.swing.plaf.UIResource { + private static final long serialVersionUID = -6075249163281010835L; + UIResource(String uiDefaultParentName, float hOffset, float sOffset, float bOffset, int aOffset) { super(uiDefaultParentName, hOffset, sOffset, bOffset, aOffset); --- old/src/share/classes/javax/swing/plaf/nimbus/NimbusLookAndFeel.java 2014-02-12 23:37:42.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/nimbus/NimbusLookAndFeel.java 2014-02-12 23:37:42.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2006, 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 @@ -61,6 +61,7 @@ * @author Jasper Potts * @author Richard Bair */ +@SuppressWarnings("serial") // Superclass is not serializable across versions public class NimbusLookAndFeel extends SynthLookAndFeel { /** Set of standard region names for UIDefaults Keys */ --- old/src/share/classes/javax/swing/plaf/nimbus/TableScrollPaneCorner.java 2014-02-12 23:37:43.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/nimbus/TableScrollPaneCorner.java 2014-02-12 23:37:42.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2006, 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 @@ -41,6 +41,7 @@ * * @author Created by Jasper Potts (Jan 28, 2008) */ +@SuppressWarnings("serial") // Superclass is not serializable across versions class TableScrollPaneCorner extends JComponent implements UIResource{ /** --- old/src/share/classes/javax/swing/plaf/synth/SynthArrowButton.java 2014-02-12 23:37:43.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/synth/SynthArrowButton.java 2014-02-12 23:37:43.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2008, 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 @@ -33,6 +33,7 @@ * * @author Scott Violet */ +@SuppressWarnings("serial") // Superclass is not serializable across versions class SynthArrowButton extends JButton implements SwingConstants, UIResource { private int direction; --- old/src/share/classes/javax/swing/plaf/synth/SynthBorder.java 2014-02-12 23:37:44.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/synth/SynthBorder.java 2014-02-12 23:37:43.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2006, 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 @@ -36,6 +36,7 @@ * * @author Scott Violet */ +@SuppressWarnings("serial") // Superclass is not serializable across versions class SynthBorder extends AbstractBorder implements UIResource { private SynthUI ui; private Insets insets; --- old/src/share/classes/javax/swing/plaf/synth/SynthComboBoxUI.java 2014-02-12 23:37:44.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/synth/SynthComboBoxUI.java 2014-02-12 23:37:44.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2012, 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 @@ -444,6 +444,7 @@ * renderer installed on a Synth combo box is a JLabel. If this is changed, * then an assert will fail in SynthFileChooserUIImpl */ + @SuppressWarnings("serial") // Superclass is not serializable across versions private class SynthComboBoxRenderer extends JLabel implements ListCellRenderer, UIResource { public SynthComboBoxRenderer() { super(); @@ -535,6 +536,7 @@ * are in sync. Whenever one is "over" both are. Whenever one is pressed, * both are. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions private final class ButtonHandler extends DefaultButtonModel implements MouseListener, PopupMenuListener { /** --- old/src/share/classes/javax/swing/plaf/synth/SynthComboPopup.java 2014-02-12 23:37:45.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/synth/SynthComboPopup.java 2014-02-12 23:37:44.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2003, 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 @@ -36,6 +36,7 @@ * * @author Scott Violet */ +@SuppressWarnings("serial") // Superclass is not serializable across versions class SynthComboPopup extends BasicComboPopup { public SynthComboPopup( JComboBox combo ) { super(combo); --- old/src/share/classes/javax/swing/plaf/synth/SynthDesktopIconUI.java 2014-02-12 23:37:45.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/synth/SynthDesktopIconUI.java 2014-02-12 23:37:45.000000000 -0800 @@ -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 @@ -60,7 +60,8 @@ @Override protected void installComponents() { if (UIManager.getBoolean("InternalFrame.useTaskBar")) { - iconPane = new JToggleButton(frame.getTitle(), frame.getFrameIcon()) { + @SuppressWarnings("serial") // anonymous class + JToggleButton tmp = new JToggleButton(frame.getTitle(), frame.getFrameIcon()) { @Override public String getToolTipText() { return getText(); } @@ -69,6 +70,7 @@ return frame.getComponentPopupMenu(); } }; + iconPane = tmp; ToolTipManager.sharedInstance().registerComponent(iconPane); iconPane.setFont(desktopIcon.getFont()); iconPane.setBackground(desktopIcon.getBackground()); --- old/src/share/classes/javax/swing/plaf/synth/SynthDesktopPaneUI.java 2014-02-12 23:37:46.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/synth/SynthDesktopPaneUI.java 2014-02-12 23:37:45.000000000 -0800 @@ -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 @@ -194,6 +194,8 @@ super.uninstallDesktopManager(); } + @SuppressWarnings("serial") // Same-version serialization only and + // internal anonymous classes static class TaskBar extends JPanel implements ComponentListener, ContainerListener { TaskBar() { setOpaque(true); @@ -321,7 +323,7 @@ } } - + @SuppressWarnings("serial") // Same-version serialization only class SynthDesktopManager extends DefaultDesktopManager implements UIResource { public void maximizeFrame(JInternalFrame f) { --- old/src/share/classes/javax/swing/plaf/synth/SynthInternalFrameTitlePane.java 2014-02-12 23:37:46.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/synth/SynthInternalFrameTitlePane.java 2014-02-12 23:37:46.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2008, 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 @@ -42,6 +42,7 @@ * @author Joshua Outwater * @author Steve Wilson */ +@SuppressWarnings("serial") // Superclass is not serializable across versions class SynthInternalFrameTitlePane extends BasicInternalFrameTitlePane implements SynthUI, PropertyChangeListener { @@ -159,6 +160,7 @@ super.uninstallDefaults(); } + @SuppressWarnings("serial") // Superclass is not serializable across versions private static class JPopupMenuUIResource extends JPopupMenu implements UIResource { } --- old/src/share/classes/javax/swing/plaf/synth/SynthListUI.java 2014-02-12 23:37:47.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/synth/SynthListUI.java 2014-02-12 23:37:46.000000000 -0800 @@ -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 @@ -196,7 +196,7 @@ return SynthLookAndFeel.getComponentState(c); } - + @SuppressWarnings("serial") // Superclass is not serializable across versions private class SynthListCellRenderer extends DefaultListCellRenderer.UIResource { @Override public String getName() { return "List.cellRenderer"; --- old/src/share/classes/javax/swing/plaf/synth/SynthLookAndFeel.java 2014-02-12 23:37:47.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/synth/SynthLookAndFeel.java 2014-02-12 23:37:47.000000000 -0800 @@ -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 @@ -63,6 +63,7 @@ * @since 1.5 * @author Scott Violet */ +@SuppressWarnings("serial") // Superclass is not serializable across versions public class SynthLookAndFeel extends BasicLookAndFeel { /** * Used in a handful of places where we need an empty Insets. --- old/src/share/classes/javax/swing/plaf/synth/SynthMenuLayout.java 2014-02-12 23:37:48.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/synth/SynthMenuLayout.java 2014-02-12 23:37:47.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2008, 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 @@ -35,7 +35,7 @@ * * @author Georges Saab */ - +@SuppressWarnings("serial") // Superclass is not serializable across versions class SynthMenuLayout extends DefaultMenuLayout { public SynthMenuLayout(Container target, int axis) { super(target, axis); --- old/src/share/classes/javax/swing/plaf/synth/SynthParser.java 2014-02-12 23:37:48.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/synth/SynthParser.java 2014-02-12 23:37:48.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2010, 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 @@ -1294,6 +1294,7 @@ /** * ImageIcon that lazily loads the image until needed. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions private static class LazyImageIcon extends ImageIcon implements UIResource { private URL location; --- old/src/share/classes/javax/swing/plaf/synth/SynthScrollBarUI.java 2014-02-12 23:37:49.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/synth/SynthScrollBarUI.java 2014-02-12 23:37:48.000000000 -0800 @@ -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 @@ -375,6 +375,7 @@ */ @Override protected JButton createDecreaseButton(int orientation) { + @SuppressWarnings("serial") // anonymous class SynthArrowButton synthArrowButton = new SynthArrowButton(orientation) { @Override public boolean contains(int x, int y) { @@ -404,6 +405,7 @@ */ @Override protected JButton createIncreaseButton(int orientation) { + @SuppressWarnings("serial") // anonymous class SynthArrowButton synthArrowButton = new SynthArrowButton(orientation) { @Override public boolean contains(int x, int y) { --- old/src/share/classes/javax/swing/plaf/synth/SynthScrollPaneUI.java 2014-02-12 23:37:49.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/synth/SynthScrollPaneUI.java 2014-02-12 23:37:49.000000000 -0800 @@ -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 @@ -230,7 +230,7 @@ } - + @SuppressWarnings("serial") // Superclass is not serializable across versions private class ViewportBorder extends AbstractBorder implements UIResource { private Insets insets; --- old/src/share/classes/javax/swing/plaf/synth/SynthSplitPaneDivider.java 2014-02-12 23:37:49.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/synth/SynthSplitPaneDivider.java 2014-02-12 23:37:49.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2005, 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 @@ -36,6 +36,7 @@ * * @author Scott Violet */ +@SuppressWarnings("serial") // Superclass is not serializable across versions class SynthSplitPaneDivider extends BasicSplitPaneDivider { public SynthSplitPaneDivider(BasicSplitPaneUI ui) { super(ui); --- old/src/share/classes/javax/swing/plaf/synth/SynthSplitPaneUI.java 2014-02-12 23:37:50.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/synth/SynthSplitPaneUI.java 2014-02-12 23:37:50.000000000 -0800 @@ -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 @@ -260,6 +260,7 @@ * {@inheritDoc} */ @Override + @SuppressWarnings("serial") // anonymous class protected Component createDefaultNonContinuousLayoutDivider() { return new Canvas() { public void paint(Graphics g) { --- old/src/share/classes/javax/swing/plaf/synth/SynthTabbedPaneUI.java 2014-02-12 23:37:50.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/synth/SynthTabbedPaneUI.java 2014-02-12 23:37:50.000000000 -0800 @@ -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 @@ -922,6 +922,7 @@ } } + @SuppressWarnings("serial") // Superclass is not serializable across versions private class SynthScrollableTabButton extends SynthArrowButton implements UIResource { public SynthScrollableTabButton(int direction) { --- old/src/share/classes/javax/swing/plaf/synth/SynthTableHeaderUI.java 2014-02-12 23:37:51.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/synth/SynthTableHeaderUI.java 2014-02-12 23:37:51.000000000 -0800 @@ -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 @@ -216,6 +216,7 @@ } } + @SuppressWarnings("serial") // Superclass is not serializable across versions private class HeaderRenderer extends DefaultTableCellHeaderRenderer { HeaderRenderer() { setHorizontalAlignment(JLabel.LEADING); --- old/src/share/classes/javax/swing/plaf/synth/SynthTableUI.java 2014-02-12 23:37:51.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/synth/SynthTableUI.java 2014-02-12 23:37:51.000000000 -0800 @@ -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 @@ -705,7 +705,7 @@ } } - + @SuppressWarnings("serial") // Superclass is not serializable across versions private class SynthBooleanTableCellRenderer extends JCheckBox implements TableCellRenderer { private boolean isRowSelected; @@ -744,6 +744,7 @@ } } + @SuppressWarnings("serial") // Superclass is not serializable across versions private class SynthTableCellRenderer extends DefaultTableCellRenderer { private Object numberFormat; private Object dateFormat; --- old/src/share/classes/javax/swing/plaf/synth/SynthTreeUI.java 2014-02-12 23:37:52.000000000 -0800 +++ new/src/share/classes/javax/swing/plaf/synth/SynthTreeUI.java 2014-02-12 23:37:52.000000000 -0800 @@ -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 @@ -684,7 +684,7 @@ return super.getRowX(row, depth) + padding; } - + @SuppressWarnings("serial") // Superclass is not serializable across versions private class SynthTreeCellRenderer extends DefaultTreeCellRenderer implements UIResource { SynthTreeCellRenderer() { @@ -762,6 +762,7 @@ @Override protected TreeCellEditor createTreeCellEditor() { + @SuppressWarnings("serial") // anonymous class JTextField tf = new JTextField() { @Override public String getName() { --- old/src/share/classes/javax/swing/text/ChangedCharSetException.java 2014-02-12 23:37:52.000000000 -0800 +++ new/src/share/classes/javax/swing/text/ChangedCharSetException.java 2014-02-12 23:37:52.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -33,6 +33,7 @@ * @author Sunita Mani */ public class ChangedCharSetException extends IOException { + private static final long serialVersionUID = 9119851554465432389L; String charSetSpec; boolean charSetKey; --- old/src/share/classes/javax/swing/text/ComponentView.java 2014-02-12 23:37:53.000000000 -0800 +++ new/src/share/classes/javax/swing/text/ComponentView.java 2014-02-12 23:37:53.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2008, 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 @@ -374,6 +374,7 @@ * cached between the associated view and the * container hosting this component). */ + @SuppressWarnings("serial") // JDK-implementation class class Invalidator extends Container implements PropertyChangeListener { // NOTE: When we remove this class we are going to have to some --- old/src/share/classes/javax/swing/text/DefaultEditorKit.java 2014-02-12 23:37:53.000000000 -0800 +++ new/src/share/classes/javax/swing/text/DefaultEditorKit.java 2014-02-12 23:37:53.000000000 -0800 @@ -71,6 +71,7 @@ * @author Timothy Prinzing */ public class DefaultEditorKit extends EditorKit { + private static final long serialVersionUID = 2948709989644140410L; /** * default constructor for DefaultEditorKit @@ -1032,6 +1033,7 @@ * @see DefaultEditorKit#deletePrevCharAction * @see DefaultEditorKit#getActions */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class DeletePrevCharAction extends TextAction { /** @@ -1090,6 +1092,7 @@ * @see DefaultEditorKit#deleteNextCharAction * @see DefaultEditorKit#getActions */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class DeleteNextCharAction extends TextAction { /* Create this object with the appropriate identifier. */ @@ -1141,6 +1144,7 @@ * Deletes the word that precedes/follows the beginning of the selection. * @see DefaultEditorKit#getActions */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class DeleteWordAction extends TextAction { DeleteWordAction(String name) { super(name); @@ -1215,6 +1219,7 @@ * @see DefaultEditorKit#readOnlyAction * @see DefaultEditorKit#getActions */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class ReadOnlyAction extends TextAction { /* Create this object with the appropriate identifier. */ @@ -1240,6 +1245,7 @@ * @see DefaultEditorKit#writableAction * @see DefaultEditorKit#getActions */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class WritableAction extends TextAction { /* Create this object with the appropriate identifier. */ @@ -1414,6 +1420,7 @@ * @see DefaultEditorKit#pageDownAction * @see DefaultEditorKit#getActions */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class VerticalPageAction extends TextAction { /** Create this object with the appropriate identifier. */ @@ -1573,6 +1580,7 @@ /** * Pages one view to the left or right. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class PageAction extends TextAction { /** Create this object with the appropriate identifier. */ @@ -1627,6 +1635,7 @@ private boolean left; } + @SuppressWarnings("serial") // Superclass is not serializable across versions static class DumpModelAction extends TextAction { DumpModelAction() { @@ -1649,6 +1658,7 @@ * getNextVisualPositionFrom method. Constructor indicates direction * to use. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class NextVisualPositionAction extends TextAction { /** @@ -1736,6 +1746,7 @@ * @see DefaultEditorKit#selectBeginWordAction * @see DefaultEditorKit#getActions */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class BeginWordAction extends TextAction { /** @@ -1776,6 +1787,7 @@ * @see DefaultEditorKit#selectEndWordAction * @see DefaultEditorKit#getActions */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class EndWordAction extends TextAction { /** @@ -1816,6 +1828,7 @@ * @see DefaultEditorKit#selectPreviousWordAction * @see DefaultEditorKit#getActions */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class PreviousWordAction extends TextAction { /** @@ -1875,6 +1888,7 @@ * @see DefaultEditorKit#selectNextWordAction * @see DefaultEditorKit#getActions */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class NextWordAction extends TextAction { /** @@ -1940,6 +1954,7 @@ * @see DefaultEditorKit#selectBeginLineAction * @see DefaultEditorKit#getActions */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class BeginLineAction extends TextAction { /** @@ -1980,6 +1995,7 @@ * @see DefaultEditorKit#selectEndLineAction * @see DefaultEditorKit#getActions */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class EndLineAction extends TextAction { /** @@ -2020,6 +2036,7 @@ * @see DefaultEditorKit#selectBeginParagraphAction * @see DefaultEditorKit#getActions */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class BeginParagraphAction extends TextAction { /** @@ -2057,6 +2074,7 @@ * @see DefaultEditorKit#selectEndParagraphAction * @see DefaultEditorKit#getActions */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class EndParagraphAction extends TextAction { /** @@ -2094,6 +2112,7 @@ * @see DefaultEditorKit#beginAction * @see DefaultEditorKit#getActions */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class BeginAction extends TextAction { /* Create this object with the appropriate identifier. */ @@ -2122,6 +2141,7 @@ * @see DefaultEditorKit#endAction * @see DefaultEditorKit#getActions */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class EndAction extends TextAction { /* Create this object with the appropriate identifier. */ @@ -2152,6 +2172,7 @@ * @see DefaultEditorKit#endAction * @see DefaultEditorKit#getActions */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class SelectWordAction extends TextAction { /** @@ -2181,6 +2202,7 @@ * @see DefaultEditorKit#endAction * @see DefaultEditorKit#getActions */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class SelectLineAction extends TextAction { /** @@ -2210,6 +2232,7 @@ * @see DefaultEditorKit#endAction * @see DefaultEditorKit#getActions */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class SelectParagraphAction extends TextAction { /** @@ -2239,6 +2262,7 @@ * @see DefaultEditorKit#endAction * @see DefaultEditorKit#getActions */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class SelectAllAction extends TextAction { /** @@ -2268,6 +2292,7 @@ * @see DefaultEditorKit#unselectAction * @see DefaultEditorKit#getActions */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class UnselectAction extends TextAction { /** @@ -2292,6 +2317,7 @@ * @see DefaultEditorKit#toggleComponentOrientationAction * @see DefaultEditorKit#getActions */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class ToggleComponentOrientationAction extends TextAction { /** --- old/src/share/classes/javax/swing/text/EditorKit.java 2014-02-12 23:37:54.000000000 -0800 +++ new/src/share/classes/javax/swing/text/EditorKit.java 2014-02-12 23:37:54.000000000 -0800 @@ -46,6 +46,7 @@ * @author Timothy Prinzing */ public abstract class EditorKit implements Cloneable, Serializable { + private static final long serialVersionUID = -5044124649345887822L; /** * Construct an EditorKit. --- old/src/share/classes/javax/swing/text/GapContent.java 2014-02-12 23:37:55.000000000 -0800 +++ new/src/share/classes/javax/swing/text/GapContent.java 2014-02-12 23:37:54.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -58,6 +58,7 @@ * * @author Timothy Prinzing */ +@SuppressWarnings("serial") // Superclass is not serializable across versions public class GapContent extends GapVector implements AbstractDocument.Content, Serializable { /** @@ -577,7 +578,7 @@ unusedMarks = 0; } - + @SuppressWarnings("serial") // Superclass is not serializable across versions static class MarkVector extends GapVector { MarkVector() { @@ -855,6 +856,7 @@ /** * UnoableEdit created for inserts. */ + @SuppressWarnings("serial") // Superclass is a JDK-implementation class class InsertUndo extends AbstractUndoableEdit { protected InsertUndo(int offset, int length) { super(); @@ -905,6 +907,7 @@ /** * UndoableEdit created for removes. */ + @SuppressWarnings("serial") // JDK-implementation class class RemoveUndo extends AbstractUndoableEdit { protected RemoveUndo(int offset, String string) { super(); --- old/src/share/classes/javax/swing/text/GapVector.java 2014-02-12 23:37:55.000000000 -0800 +++ new/src/share/classes/javax/swing/text/GapVector.java 2014-02-12 23:37:55.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2003, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -41,6 +41,7 @@ * @author Timothy Prinzing * @see GapContent */ +@SuppressWarnings("serial") // Data in fields not necessarily serializable abstract class GapVector implements Serializable { --- old/src/share/classes/javax/swing/text/StateInvariantError.java 2014-02-12 23:37:56.000000000 -0800 +++ new/src/share/classes/javax/swing/text/StateInvariantError.java 2014-02-12 23:37:55.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 1998, 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 @@ -33,6 +33,8 @@ */ class StateInvariantError extends Error { + private static final long serialVersionUID = 1823025015388960447L; + /** * Creates a new StateInvariantFailure object. * --- old/src/share/classes/javax/swing/text/StyledEditorKit.java 2014-02-12 23:37:56.000000000 -0800 +++ new/src/share/classes/javax/swing/text/StyledEditorKit.java 2014-02-12 23:37:56.000000000 -0800 @@ -45,6 +45,7 @@ * @author Timothy Prinzing */ public class StyledEditorKit extends DefaultEditorKit { + private static final long serialVersionUID = 7002391892985555948L; /** * Creates a new EditorKit used for styled documents. @@ -170,6 +171,7 @@ /** * Creates the AttributeSet used for the selection. */ + @SuppressWarnings("serial") // anonymous class private void createInputAttributes() { inputAttributes = new SimpleAttributeSet() { public AttributeSet getResolveParent() { @@ -218,6 +220,7 @@ * input attributes when the Document changes, as if the Document * changes the attributes will almost certainly change. */ + @SuppressWarnings("serial") // JDK-implementation class class AttributeTracker implements CaretListener, PropertyChangeListener, Serializable { /** @@ -854,6 +857,7 @@ * is inserted. Beyond that, this will reset the input attributes to * what they were before the newline was inserted. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class StyledInsertBreakAction extends StyledTextAction { private SimpleAttributeSet tempSet; --- old/src/share/classes/javax/swing/text/html/CSS.java 2014-02-12 23:37:57.000000000 -0800 +++ new/src/share/classes/javax/swing/text/html/CSS.java 2014-02-12 23:37:56.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -123,6 +123,7 @@ * @author Scott Violet * @see StyleSheet */ +@SuppressWarnings("serial") // Same-version serialization only public class CSS implements Serializable { /** @@ -1563,6 +1564,7 @@ * method to convert the CSS value to a StyleConstants * value. */ + @SuppressWarnings("serial") // Same-version serialization only static class CssValue implements Serializable { /** @@ -1641,6 +1643,7 @@ * provides StyleConstants conversion support for the * CSS attributes that are held as strings. */ + @SuppressWarnings("serial") // Same-version serialization only static class StringValue extends CssValue { /** @@ -1797,6 +1800,7 @@ * If the type is Integer, the value is specified * in terms of a size index. */ + @SuppressWarnings("serial") // Same-version serialization only class FontSize extends CssValue { /** @@ -1966,6 +1970,7 @@ LengthUnit lu; } + @SuppressWarnings("serial") // Same-version serialization only static class FontFamily extends CssValue { /** @@ -2063,6 +2068,7 @@ String family; } + @SuppressWarnings("serial") // Same-version serialization only static class FontWeight extends CssValue { int getValue() { @@ -2125,6 +2131,7 @@ int weight; } + @SuppressWarnings("serial") // Same-version serialization only static class ColorValue extends CssValue { /** @@ -2184,6 +2191,7 @@ Color c; } + @SuppressWarnings("serial") // Same-version serialization only static class BorderStyle extends CssValue { CSS.Value getValue() { @@ -2236,6 +2244,7 @@ transient private CSS.Value style; } + @SuppressWarnings("serial") // Same-version serialization only static class LengthValue extends CssValue { /** @@ -2373,6 +2382,7 @@ * BorderWidthValue is used to model BORDER_XXX_WIDTH and adds support * for the thin/medium/thick values. */ + @SuppressWarnings("serial") // Same-version serialization only static class BorderWidthValue extends LengthValue { BorderWidthValue(String svalue, int index) { this.svalue = svalue; @@ -2412,6 +2422,7 @@ * Handles uniquing of CSS values, like lists, and background image * repeating. */ + @SuppressWarnings("serial") // Same-version serialization only static class CssValueMapper extends CssValue { Object parseCssValue(String value) { Object retValue = cssValueToInternalValueMap.get(value); @@ -2435,6 +2446,7 @@ /** * Used for background images, to represent the position. */ + @SuppressWarnings("serial") // Same-version serialization only static class BackgroundPosition extends CssValue { float horizontalPosition; float verticalPosition; @@ -2580,6 +2592,7 @@ /** * Used for BackgroundImages. */ + @SuppressWarnings("serial") // Same-version serialization only static class BackgroundImage extends CssValue { private boolean loadedImage; private ImageIcon image; @@ -2619,6 +2632,7 @@ * Parses a length value, this is used internally, and never added * to an AttributeSet or returned to the developer. */ + @SuppressWarnings("serial") // Same-version serialization only static class LengthUnit implements Serializable { static Hashtable lengthMapping = new Hashtable(6); static Hashtable w3cLengthMapping = new Hashtable(6); --- old/src/share/classes/javax/swing/text/html/CSSBorder.java 2014-02-12 23:37:57.000000000 -0800 +++ new/src/share/classes/javax/swing/text/html/CSSBorder.java 2014-02-12 23:37:57.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2007, 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 @@ -50,6 +50,7 @@ * * @author Sergey Groznyh */ +@SuppressWarnings("serial") // Superclass is not serializable across versions class CSSBorder extends AbstractBorder { /** Indices for the attribute groups. */ --- old/src/share/classes/javax/swing/text/html/CommentView.java 2014-02-12 23:37:58.000000000 -0800 +++ new/src/share/classes/javax/swing/text/html/CommentView.java 2014-02-12 23:37:58.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2004, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -115,6 +115,7 @@ static final int commentPadding = 3; static final int commentPaddingD = commentPadding * 3; + @SuppressWarnings("serial") // Superclass is not serializable across versions static class CommentBorder extends LineBorder { CommentBorder() { super(Color.black, 1); --- old/src/share/classes/javax/swing/text/html/FormSubmitEvent.java 2014-02-12 23:37:58.000000000 -0800 +++ new/src/share/classes/javax/swing/text/html/FormSubmitEvent.java 2014-02-12 23:37:58.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2006, 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 @@ -34,7 +34,7 @@ * @since 1.5 * @author Denis Sharypov */ - +@SuppressWarnings("serial") // Superclass is not serializable across versions public class FormSubmitEvent extends HTMLFrameHyperlinkEvent { /** --- old/src/share/classes/javax/swing/text/html/FrameView.java 2014-02-12 23:37:59.000000000 -0800 +++ new/src/share/classes/javax/swing/text/html/FrameView.java 2014-02-12 23:37:59.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -458,6 +458,7 @@ /** Editor pane rendering frame of HTML document * It uses the same editor kits classes as outermost JEditorPane */ + @SuppressWarnings("serial") // Superclass is not serializable across versions class FrameEditorPane extends JEditorPane implements FrameEditorPaneTag { public EditorKit getEditorKitForContentType(String type) { EditorKit editorKit = super.getEditorKitForContentType(type); --- old/src/share/classes/javax/swing/text/html/HTML.java 2014-02-12 23:37:59.000000000 -0800 +++ new/src/share/classes/javax/swing/text/html/HTML.java 2014-02-12 23:37:59.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -284,6 +284,7 @@ // There is no unique instance of UnknownTag, so we allow it to be // Serializable. public static class UnknownTag extends Tag implements Serializable { + private static final long serialVersionUID = -1534369342247250625L; /** * Creates a new UnknownTag with the specified --- old/src/share/classes/javax/swing/text/html/HTMLEditorKit.java 2014-02-12 23:38:00.000000000 -0800 +++ new/src/share/classes/javax/swing/text/html/HTMLEditorKit.java 2014-02-12 23:38:00.000000000 -0800 @@ -160,6 +160,7 @@ * * @author Timothy Prinzing */ +@SuppressWarnings("serial") // Same-version serialization only public class HTMLEditorKit extends StyledEditorKit implements Accessible { private JEditorPane theEditor; @@ -640,6 +641,7 @@ * Class to watch the associated component and fire * hyperlink events on it when appropriate. */ + @SuppressWarnings("serial") // Same-version serialization only public static class LinkController extends MouseAdapter implements MouseMotionListener, Serializable { private Element curElem = null; /** @@ -1482,6 +1484,7 @@ * document. If you have another thread modifying the text these * methods may have inconsistent behavior, or return the wrong thing. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions public static abstract class HTMLTextAction extends StyledTextAction { public HTMLTextAction(String name) { super(name); @@ -1592,6 +1595,7 @@ * addTag. These will be checked for if there is no parentTag at * offset. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions public static class InsertHTMLTextAction extends HTMLTextAction { public InsertHTMLTextAction(String name, String html, HTML.Tag parentTag, HTML.Tag addTag) { @@ -1823,6 +1827,7 @@ * the parent HTML.Tag based on the paragraph element at the selection * start. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class InsertHRAction extends InsertHTMLTextAction { InsertHRAction() { super("InsertHR", "
", null, HTML.Tag.IMPLIED, null, null, @@ -1877,6 +1882,7 @@ * javax.accessibility package. The text package should support * keyboard navigation of text elements directly. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class NavigateLinkAction extends TextAction implements CaretListener { private static final FocusHighlightPainter focusPainter = @@ -2086,6 +2092,7 @@ * javax.accessibility package. The text package should support * keyboard navigation of text elements directly. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class ActivateLinkAction extends TextAction { /** @@ -2259,7 +2266,7 @@ * @see DefaultEditorKit#beginAction * @see HTMLEditorKit#getActions */ - + @SuppressWarnings("serial") // Superclass is not serializable across versions static class BeginAction extends TextAction { /* Create this object with the appropriate identifier. */ --- old/src/share/classes/javax/swing/text/html/HTMLFrameHyperlinkEvent.java 2014-02-12 23:38:00.000000000 -0800 +++ new/src/share/classes/javax/swing/text/html/HTMLFrameHyperlinkEvent.java 2014-02-12 23:38:00.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2000, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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,7 +35,7 @@ * * @author Sunita Mani */ - +@SuppressWarnings("serial") // Superclass is not serializable across versions public class HTMLFrameHyperlinkEvent extends HyperlinkEvent { /** --- old/src/share/classes/javax/swing/text/html/HiddenTagView.java 2014-02-12 23:38:01.000000000 -0800 +++ new/src/share/classes/javax/swing/text/html/HiddenTagView.java 2014-02-12 23:38:01.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -295,7 +295,7 @@ static final Border StartBorder = new StartTagBorder(); static final Border EndBorder = new EndTagBorder(); - + @SuppressWarnings("serial") // Same-version serialization only static class StartTagBorder implements Border, Serializable { public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { @@ -326,7 +326,7 @@ } } // End of class HiddenTagView.StartTagBorder - + @SuppressWarnings("serial") // Same-version serialization only static class EndTagBorder implements Border, Serializable { public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { --- old/src/share/classes/javax/swing/text/html/Map.java 2014-02-12 23:38:01.000000000 -0800 +++ new/src/share/classes/javax/swing/text/html/Map.java 2014-02-12 23:38:01.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -37,6 +37,7 @@ * * @author Scott Violet */ +@SuppressWarnings("serial") // Same-version serialization only class Map implements Serializable { /** Name of the Map. */ private String name; --- old/src/share/classes/javax/swing/text/html/MuxingAttributeSet.java 2014-02-12 23:38:02.000000000 -0800 +++ new/src/share/classes/javax/swing/text/html/MuxingAttributeSet.java 2014-02-12 23:38:02.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 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 @@ -33,6 +33,7 @@ * across a set of AttributeSets. * */ +@SuppressWarnings("serial") // Same-version serialization only class MuxingAttributeSet implements AttributeSet, Serializable { /** * Creates a MuxingAttributeSet with the passed in --- old/src/share/classes/javax/swing/text/html/OptionComboBoxModel.java 2014-02-12 23:38:02.000000000 -0800 +++ new/src/share/classes/javax/swing/text/html/OptionComboBoxModel.java 2014-02-12 23:38:02.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -39,7 +39,7 @@ * @author Sunita Mani */ - +@SuppressWarnings("serial") // Superclass is not serializable across versions class OptionComboBoxModel extends DefaultComboBoxModel implements Serializable { private Option selectedOption = null; --- old/src/share/classes/javax/swing/text/html/OptionListModel.java 2014-02-12 23:38:03.000000000 -0800 +++ new/src/share/classes/javax/swing/text/html/OptionListModel.java 2014-02-12 23:38:03.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -42,7 +42,7 @@ * @author Sunita Mani */ - +@SuppressWarnings("serial") // Superclass is not serializable across versions class OptionListModel extends DefaultListModel implements ListSelectionModel, Serializable { --- old/src/share/classes/javax/swing/text/html/StyleSheet.java 2014-02-12 23:38:03.000000000 -0800 +++ new/src/share/classes/javax/swing/text/html/StyleSheet.java 2014-02-12 23:38:03.000000000 -0800 @@ -127,6 +127,7 @@ * @author Sara Swanson * @author Jill Nakata */ +@SuppressWarnings("serial") // Superclass is not serializable across versions public class StyleSheet extends StyleContext { // As the javadoc states, this class maintains a mapping between // a CSS selector (such as p.bar) and a Style. @@ -763,6 +764,7 @@ * Large set of attributes that does conversion of requests * for attributes of type StyleConstants. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions class LargeConversionSet extends SimpleAttributeSet { /** @@ -1760,6 +1762,7 @@ * the insets of a View and making sure the background * is maintained according to the CSS attributes. */ + @SuppressWarnings("serial") // Same-version serialization only public static class BoxPainter implements Serializable { BoxPainter(AttributeSet a, CSS css, StyleSheet ss) { @@ -2019,6 +2022,7 @@ * while not knowing anything about how the CSS values * are being cached. */ + @SuppressWarnings("serial") // Same-version serialization only public static class ListPainter implements Serializable { ListPainter(AttributeSet attr, StyleSheet ss) { @@ -2448,6 +2452,7 @@ /** * Paints the background image. */ + @SuppressWarnings("serial") // Same-version serialization only static class BackgroundImagePainter implements Serializable { ImageIcon backgroundImage; float hPosition; @@ -2615,6 +2620,7 @@ * CSS and HTML and StyleConstants. The AttributeSets used are * the CSS rules that match the Views Elements. */ + @SuppressWarnings("serial") // Same-version serialization only class ViewAttributeSet extends MuxingAttributeSet { ViewAttributeSet(View v) { host = v; @@ -2779,6 +2785,7 @@ // contain a SimpleAttributeSet that modify methods are delegated to, // or change getRule to return an AttributeSet and then don't make this // implement Style. + @SuppressWarnings("serial") // Same-version serialization only static class ResolvedStyle extends MuxingAttributeSet implements Serializable, Style { ResolvedStyle(String name, AttributeSet[] attrs, int extendedIndex) { @@ -3020,6 +3027,7 @@ * This is not thread safe, it is assumed the caller will take the * necessary precations if this is to be used in a threaded environment. */ + @SuppressWarnings("serial") // Same-version serialization only static class SelectorMapping implements Serializable { public SelectorMapping(int specificity) { this.specificity = specificity; --- old/src/share/classes/javax/swing/text/html/TextAreaDocument.java 2014-02-12 23:38:04.000000000 -0800 +++ new/src/share/classes/javax/swing/text/html/TextAreaDocument.java 2014-02-12 23:38:04.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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,7 +35,7 @@ * * @author Sunita Mani */ - +@SuppressWarnings("serial") // Superclass is not serializable across versions class TextAreaDocument extends PlainDocument { String initialText; --- old/src/share/classes/javax/swing/text/html/parser/AttributeList.java 2014-02-12 23:38:05.000000000 -0800 +++ new/src/share/classes/javax/swing/text/html/parser/AttributeList.java 2014-02-12 23:38:05.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -46,6 +46,8 @@ */ public final class AttributeList implements DTDConstants, Serializable { + private static final long serialVersionUID = -1361214058742015233L; + public String name; public int type; public Vector values; --- old/src/share/classes/javax/swing/text/html/parser/ContentModel.java 2014-02-12 23:38:05.000000000 -0800 +++ new/src/share/classes/javax/swing/text/html/parser/ContentModel.java 2014-02-12 23:38:05.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2004, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -40,6 +40,7 @@ * @author Arthur van Hoff * */ +@SuppressWarnings("serial") // Same-version serialization only public final class ContentModel implements Serializable { /** * Type. Either '*', '?', '+', ',', '|', '&'. --- old/src/share/classes/javax/swing/text/html/parser/Element.java 2014-02-12 23:38:06.000000000 -0800 +++ new/src/share/classes/javax/swing/text/html/parser/Element.java 2014-02-12 23:38:06.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -40,6 +40,7 @@ * @see AttributeList * @author Arthur van Hoff */ +@SuppressWarnings("serial") // Same-version serialization only public final class Element implements DTDConstants, Serializable { public int index; --- old/src/share/classes/javax/swing/text/html/parser/ParserDelegator.java 2014-02-12 23:38:06.000000000 -0800 +++ new/src/share/classes/javax/swing/text/html/parser/ParserDelegator.java 2014-02-12 23:38:06.000000000 -0800 @@ -43,9 +43,8 @@ * * @author Sunita Mani */ - +@SuppressWarnings("serial") // Same-version serialization only public class ParserDelegator extends HTMLEditorKit.Parser implements Serializable { - private static final Object DTD_KEY = new Object(); protected static void setDefaultDTD() { --- old/src/share/classes/javax/swing/text/rtf/RTFEditorKit.java 2014-02-12 23:38:07.000000000 -0800 +++ new/src/share/classes/javax/swing/text/rtf/RTFEditorKit.java 2014-02-12 23:38:07.000000000 -0800 @@ -41,6 +41,7 @@ * @author Timothy Prinzing (of this class, not the package!) */ public class RTFEditorKit extends StyledEditorKit { + private static final long serialVersionUID = -1734062889376441555L; /** * Constructs an RTFEditorKit. --- old/src/share/classes/javax/swing/tree/ExpandVetoException.java 2014-02-12 23:38:07.000000000 -0800 +++ new/src/share/classes/javax/swing/tree/ExpandVetoException.java 2014-02-12 23:38:07.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 1999, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -37,6 +37,8 @@ * @author Scott Violet */ public class ExpandVetoException extends Exception { + private static final long serialVersionUID = 3087147949017162393L; + /** The event that the exception was created for. */ protected TreeExpansionEvent event; --- old/src/share/classes/javax/swing/undo/AbstractUndoableEdit.java 2014-02-12 23:38:08.000000000 -0800 +++ new/src/share/classes/javax/swing/undo/AbstractUndoableEdit.java 2014-02-12 23:38:08.000000000 -0800 @@ -36,6 +36,7 @@ * @author Ray Ryan */ public class AbstractUndoableEdit implements UndoableEdit, Serializable { + private static final long serialVersionUID = 580150227676302096L; /** * String returned by getUndoPresentationName; --- old/src/share/classes/javax/swing/undo/CompoundEdit.java 2014-02-12 23:38:08.000000000 -0800 +++ new/src/share/classes/javax/swing/undo/CompoundEdit.java 2014-02-12 23:38:08.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2004, 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 @@ -33,6 +33,8 @@ * @author Ray Ryan */ public class CompoundEdit extends AbstractUndoableEdit { + private static final long serialVersionUID = -6512679249930119683L; + /** * True if this edit has never received end. */ --- old/src/share/classes/javax/swing/undo/StateEdit.java 2014-02-12 23:38:09.000000000 -0800 +++ new/src/share/classes/javax/swing/undo/StateEdit.java 2014-02-12 23:38:09.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2008, 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 @@ -58,7 +58,7 @@ public class StateEdit extends AbstractUndoableEdit { - + private static final long serialVersionUID = 3432768048263000163L; protected static final String RCSID = "$Id: StateEdit.java,v 1.6 1997/10/01 20:05:51 sandipc Exp $"; //