8034169: Fix serial lint warnings in javax.swing
authordarcy
Sun, 23 Mar 2014 13:49:48 -0700
changeset 23697 e556a715949f
parent 23696 7deff68428ef
child 23698 df595f006056
8034169: Fix serial lint warnings in javax.swing Reviewed-by: alanb, prr
jdk/src/share/classes/javax/swing/AbstractSpinnerModel.java
jdk/src/share/classes/javax/swing/ActionPropertyChangeListener.java
jdk/src/share/classes/javax/swing/ComponentInputMap.java
jdk/src/share/classes/javax/swing/DefaultComboBoxModel.java
jdk/src/share/classes/javax/swing/DefaultDesktopManager.java
jdk/src/share/classes/javax/swing/DefaultFocusManager.java
jdk/src/share/classes/javax/swing/JColorChooser.java
jdk/src/share/classes/javax/swing/JFileChooser.java
jdk/src/share/classes/javax/swing/JLayer.java
jdk/src/share/classes/javax/swing/LayoutComparator.java
jdk/src/share/classes/javax/swing/LayoutFocusTraversalPolicy.java
jdk/src/share/classes/javax/swing/LegacyGlueFocusTraversalPolicy.java
jdk/src/share/classes/javax/swing/MultiUIDefaults.java
jdk/src/share/classes/javax/swing/Popup.java
jdk/src/share/classes/javax/swing/PopupFactory.java
jdk/src/share/classes/javax/swing/ProgressMonitor.java
jdk/src/share/classes/javax/swing/SortingFocusTraversalPolicy.java
jdk/src/share/classes/javax/swing/SpinnerDateModel.java
jdk/src/share/classes/javax/swing/SpinnerListModel.java
jdk/src/share/classes/javax/swing/SpinnerNumberModel.java
jdk/src/share/classes/javax/swing/SwingUtilities.java
jdk/src/share/classes/javax/swing/SwingWorker.java
jdk/src/share/classes/javax/swing/colorchooser/CenterLayout.java
jdk/src/share/classes/javax/swing/colorchooser/ColorChooserPanel.java
jdk/src/share/classes/javax/swing/colorchooser/ColorPanel.java
jdk/src/share/classes/javax/swing/colorchooser/DefaultColorSelectionModel.java
jdk/src/share/classes/javax/swing/colorchooser/DefaultSwatchChooserPanel.java
jdk/src/share/classes/javax/swing/colorchooser/DiagramComponent.java
jdk/src/share/classes/javax/swing/colorchooser/SmartGridLayout.java
jdk/src/share/classes/javax/swing/colorchooser/ValueFormatter.java
jdk/src/share/classes/javax/swing/event/RowSorterEvent.java
jdk/src/share/classes/javax/swing/event/TreeSelectionEvent.java
jdk/src/share/classes/javax/swing/filechooser/FileSystemView.java
jdk/src/share/classes/javax/swing/plaf/ActionMapUIResource.java
jdk/src/share/classes/javax/swing/plaf/ComponentInputMapUIResource.java
jdk/src/share/classes/javax/swing/plaf/InputMapUIResource.java
jdk/src/share/classes/javax/swing/plaf/LayerUI.java
jdk/src/share/classes/javax/swing/plaf/basic/BasicBorders.java
jdk/src/share/classes/javax/swing/plaf/basic/BasicColorChooserUI.java
jdk/src/share/classes/javax/swing/plaf/basic/BasicComboBoxEditor.java
jdk/src/share/classes/javax/swing/plaf/basic/BasicDesktopPaneUI.java
jdk/src/share/classes/javax/swing/plaf/basic/BasicDirectoryModel.java
jdk/src/share/classes/javax/swing/plaf/basic/BasicFileChooserUI.java
jdk/src/share/classes/javax/swing/plaf/basic/BasicHTML.java
jdk/src/share/classes/javax/swing/plaf/basic/BasicListUI.java
jdk/src/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java
jdk/src/share/classes/javax/swing/plaf/basic/BasicRootPaneUI.java
jdk/src/share/classes/javax/swing/plaf/basic/BasicSliderUI.java
jdk/src/share/classes/javax/swing/plaf/basic/BasicSpinnerUI.java
jdk/src/share/classes/javax/swing/plaf/basic/BasicSplitPaneUI.java
jdk/src/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java
jdk/src/share/classes/javax/swing/plaf/basic/BasicTableUI.java
jdk/src/share/classes/javax/swing/plaf/basic/BasicToolBarUI.java
jdk/src/share/classes/javax/swing/plaf/basic/BasicTreeUI.java
jdk/src/share/classes/javax/swing/plaf/basic/CenterLayout.java
jdk/src/share/classes/javax/swing/plaf/basic/DefaultMenuLayout.java
jdk/src/share/classes/javax/swing/plaf/basic/LazyActionMap.java
jdk/src/share/classes/javax/swing/plaf/metal/MetalBorders.java
jdk/src/share/classes/javax/swing/plaf/metal/MetalComboBoxIcon.java
jdk/src/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java
jdk/src/share/classes/javax/swing/plaf/metal/MetalInternalFrameTitlePane.java
jdk/src/share/classes/javax/swing/plaf/metal/MetalTitlePane.java
jdk/src/share/classes/javax/swing/plaf/metal/OceanTheme.java
jdk/src/share/classes/javax/swing/plaf/multi/MultiLookAndFeel.java
jdk/src/share/classes/javax/swing/plaf/nimbus/DerivedColor.java
jdk/src/share/classes/javax/swing/plaf/nimbus/NimbusLookAndFeel.java
jdk/src/share/classes/javax/swing/plaf/nimbus/TableScrollPaneCorner.java
jdk/src/share/classes/javax/swing/plaf/synth/SynthArrowButton.java
jdk/src/share/classes/javax/swing/plaf/synth/SynthBorder.java
jdk/src/share/classes/javax/swing/plaf/synth/SynthComboBoxUI.java
jdk/src/share/classes/javax/swing/plaf/synth/SynthComboPopup.java
jdk/src/share/classes/javax/swing/plaf/synth/SynthDesktopIconUI.java
jdk/src/share/classes/javax/swing/plaf/synth/SynthDesktopPaneUI.java
jdk/src/share/classes/javax/swing/plaf/synth/SynthInternalFrameTitlePane.java
jdk/src/share/classes/javax/swing/plaf/synth/SynthListUI.java
jdk/src/share/classes/javax/swing/plaf/synth/SynthMenuLayout.java
jdk/src/share/classes/javax/swing/plaf/synth/SynthParser.java
jdk/src/share/classes/javax/swing/plaf/synth/SynthScrollBarUI.java
jdk/src/share/classes/javax/swing/plaf/synth/SynthScrollPaneUI.java
jdk/src/share/classes/javax/swing/plaf/synth/SynthSplitPaneDivider.java
jdk/src/share/classes/javax/swing/plaf/synth/SynthSplitPaneUI.java
jdk/src/share/classes/javax/swing/plaf/synth/SynthTabbedPaneUI.java
jdk/src/share/classes/javax/swing/plaf/synth/SynthTableHeaderUI.java
jdk/src/share/classes/javax/swing/plaf/synth/SynthTableUI.java
jdk/src/share/classes/javax/swing/plaf/synth/SynthTreeUI.java
jdk/src/share/classes/javax/swing/text/ChangedCharSetException.java
jdk/src/share/classes/javax/swing/text/ComponentView.java
jdk/src/share/classes/javax/swing/text/DefaultEditorKit.java
jdk/src/share/classes/javax/swing/text/EditorKit.java
jdk/src/share/classes/javax/swing/text/GapContent.java
jdk/src/share/classes/javax/swing/text/GapVector.java
jdk/src/share/classes/javax/swing/text/StateInvariantError.java
jdk/src/share/classes/javax/swing/text/StyledEditorKit.java
jdk/src/share/classes/javax/swing/text/html/CSS.java
jdk/src/share/classes/javax/swing/text/html/CSSBorder.java
jdk/src/share/classes/javax/swing/text/html/CommentView.java
jdk/src/share/classes/javax/swing/text/html/FormSubmitEvent.java
jdk/src/share/classes/javax/swing/text/html/FrameView.java
jdk/src/share/classes/javax/swing/text/html/HTML.java
jdk/src/share/classes/javax/swing/text/html/HTMLEditorKit.java
jdk/src/share/classes/javax/swing/text/html/HTMLFrameHyperlinkEvent.java
jdk/src/share/classes/javax/swing/text/html/HiddenTagView.java
jdk/src/share/classes/javax/swing/text/html/Map.java
jdk/src/share/classes/javax/swing/text/html/MuxingAttributeSet.java
jdk/src/share/classes/javax/swing/text/html/OptionComboBoxModel.java
jdk/src/share/classes/javax/swing/text/html/OptionListModel.java
jdk/src/share/classes/javax/swing/text/html/StyleSheet.java
jdk/src/share/classes/javax/swing/text/html/TextAreaDocument.java
jdk/src/share/classes/javax/swing/text/html/parser/AttributeList.java
jdk/src/share/classes/javax/swing/text/html/parser/ContentModel.java
jdk/src/share/classes/javax/swing/text/html/parser/Element.java
jdk/src/share/classes/javax/swing/text/html/parser/ParserDelegator.java
jdk/src/share/classes/javax/swing/text/rtf/RTFEditorKit.java
jdk/src/share/classes/javax/swing/tree/ExpandVetoException.java
jdk/src/share/classes/javax/swing/undo/AbstractUndoableEdit.java
jdk/src/share/classes/javax/swing/undo/CompoundEdit.java
jdk/src/share/classes/javax/swing/undo/StateEdit.java
--- a/jdk/src/share/classes/javax/swing/AbstractSpinnerModel.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/AbstractSpinnerModel.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
 {
 
--- a/jdk/src/share/classes/javax/swing/ActionPropertyChangeListener.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/ActionPropertyChangeListener.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2011, 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<T extends JComponent>
         implements PropertyChangeListener, Serializable {
     private static ReferenceQueue<JComponent> queue;
--- a/jdk/src/share/classes/javax/swing/ComponentInputMap.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/ComponentInputMap.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2011, 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;
--- a/jdk/src/share/classes/javax/swing/DefaultComboBoxModel.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/DefaultComboBoxModel.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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<E> extends AbstractListModel<E> implements MutableComboBoxModel<E>, Serializable {
     Vector<E> objects;
     Object selectedObject;
--- a/jdk/src/share/classes/javax/swing/DefaultDesktopManager.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/DefaultDesktopManager.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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";
 
--- a/jdk/src/share/classes/javax/swing/DefaultFocusManager.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/DefaultFocusManager.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -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
 {
--- a/jdk/src/share/classes/javax/swing/JColorChooser.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/JColorChooser.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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;
--- a/jdk/src/share/classes/javax/swing/JFileChooser.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/JFileChooser.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -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 {
 
         /**
--- a/jdk/src/share/classes/javax/swing/JLayer.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/JLayer.java	Sun Mar 23 13:49:48 2014 -0700
@@ -148,6 +148,7 @@
  *
  * @author Alexander Potochkin
  */
+@SuppressWarnings("serial") // Superclass is not serializable across versions
 public final class JLayer<V extends Component>
         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}
--- a/jdk/src/share/classes/javax/swing/LayoutComparator.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/LayoutComparator.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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<Component>, java.io.Serializable {
 
     private static final int ROW_TOLERANCE = 10;
--- a/jdk/src/share/classes/javax/swing/LayoutFocusTraversalPolicy.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/LayoutFocusTraversalPolicy.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
 {
--- a/jdk/src/share/classes/javax/swing/LegacyGlueFocusTraversalPolicy.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/LegacyGlueFocusTraversalPolicy.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
 {
--- a/jdk/src/share/classes/javax/swing/MultiUIDefaults.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/MultiUIDefaults.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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;
--- a/jdk/src/share/classes/javax/swing/Popup.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/Popup.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2011, 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 {
     }
 }
--- a/jdk/src/share/classes/javax/swing/PopupFactory.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/PopupFactory.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2012, 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() {
--- a/jdk/src/share/classes/javax/swing/ProgressMonitor.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/ProgressMonitor.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -153,7 +153,7 @@
         }
     }
 
-
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     private class ProgressOptionPane extends JOptionPane
     {
         ProgressOptionPane(Object messageList) {
--- a/jdk/src/share/classes/javax/swing/SortingFocusTraversalPolicy.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/SortingFocusTraversalPolicy.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2013, 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
 {
--- a/jdk/src/share/classes/javax/swing/SpinnerDateModel.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/SpinnerDateModel.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2013, 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;
--- a/jdk/src/share/classes/javax/swing/SpinnerListModel.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/SpinnerListModel.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2013, 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;
--- a/jdk/src/share/classes/javax/swing/SpinnerNumberModel.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/SpinnerNumberModel.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2013, 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;
--- a/jdk/src/share/classes/javax/swing/SwingUtilities.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/SwingUtilities.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -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();
--- a/jdk/src/share/classes/javax/swing/SwingWorker.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/SwingWorker.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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) {
--- a/jdk/src/share/classes/javax/swing/colorchooser/CenterLayout.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/colorchooser/CenterLayout.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -34,6 +34,7 @@
   * @author Tom Santos
   * @author Steve Wilson
   */
+@SuppressWarnings("serial") // Same-version serialization only
 class CenterLayout implements LayoutManager, Serializable {
     public void addLayoutComponent(String name, Component comp) { }
     public void removeLayoutComponent(Component comp) { }
--- a/jdk/src/share/classes/javax/swing/colorchooser/ColorChooserPanel.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/colorchooser/ColorChooserPanel.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2012, 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;
--- a/jdk/src/share/classes/javax/swing/colorchooser/ColorPanel.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/colorchooser/ColorPanel.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2012, 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];
--- a/jdk/src/share/classes/javax/swing/colorchooser/DefaultColorSelectionModel.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/colorchooser/DefaultColorSelectionModel.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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 {
 
     /**
--- a/jdk/src/share/classes/javax/swing/colorchooser/DefaultSwatchChooserPanel.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/colorchooser/DefaultSwatchChooserPanel.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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 {
 
 
--- a/jdk/src/share/classes/javax/swing/colorchooser/DiagramComponent.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/colorchooser/DiagramComponent.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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;
--- a/jdk/src/share/classes/javax/swing/colorchooser/SmartGridLayout.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/colorchooser/SmartGridLayout.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -38,6 +38,7 @@
   *
   * @author Steve Wilson
   */
+@SuppressWarnings("serial") // Same-version serialization only
 class SmartGridLayout implements LayoutManager, Serializable {
 
   int rows = 2;
--- a/jdk/src/share/classes/javax/swing/colorchooser/ValueFormatter.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/colorchooser/ValueFormatter.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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) {
--- a/jdk/src/share/classes/javax/swing/event/RowSorterEvent.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/event/RowSorterEvent.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -40,6 +40,7 @@
  * @see javax.swing.RowSorter
  * @since 1.6
  */
+@SuppressWarnings("serial") // Same-version serialization only
 public class RowSorterEvent extends java.util.EventObject {
     private Type type;
     private int[] oldViewToModel;
--- a/jdk/src/share/classes/javax/swing/event/TreeSelectionEvent.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/event/TreeSelectionEvent.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -49,6 +49,7 @@
  *
  * @author Scott Violet
  */
+@SuppressWarnings("serial") // Same-version serialization only
 public class TreeSelectionEvent extends EventObject
 {
     /** Paths this event represents. */
--- a/jdk/src/share/classes/javax/swing/filechooser/FileSystemView.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/filechooser/FileSystemView.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -579,9 +579,7 @@
         return new FileSystemRoot(f);
     }
 
-
-
-
+    @SuppressWarnings("serial") // Same-version serialization only
     static class FileSystemRoot extends File {
         public FileSystemRoot(File f) {
             super(f,"");
@@ -775,6 +773,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.
--- a/jdk/src/share/classes/javax/swing/plaf/ActionMapUIResource.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/ActionMapUIResource.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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() {
     }
--- a/jdk/src/share/classes/javax/swing/plaf/ComponentInputMapUIResource.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/ComponentInputMapUIResource.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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);
--- a/jdk/src/share/classes/javax/swing/plaf/InputMapUIResource.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/InputMapUIResource.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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") // Same-version serialization only
 public class InputMapUIResource extends InputMap implements UIResource {
     public InputMapUIResource() {
     }
--- a/jdk/src/share/classes/javax/swing/plaf/LayerUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/LayerUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009, 2013, 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
@@ -58,6 +58,7 @@
  *
  * @author Alexander Potochkin
  */
+@SuppressWarnings("serial") // Same-version serialization only
 public class LayerUI<V extends Component>
         extends ComponentUI implements Serializable {
 
--- a/jdk/src/share/classes/javax/swing/plaf/basic/BasicBorders.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/BasicBorders.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -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;
--- a/jdk/src/share/classes/javax/swing/plaf/basic/BasicColorChooserUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/BasicColorChooserUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2012, 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() {
--- a/jdk/src/share/classes/javax/swing/plaf/basic/BasicComboBoxEditor.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/BasicComboBoxEditor.java	Sun Mar 23 13:49:48 2014 -0700
@@ -131,6 +131,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);
--- a/jdk/src/share/classes/javax/swing/plaf/basic/BasicDesktopPaneUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/BasicDesktopPaneUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -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();
--- a/jdk/src/share/classes/javax/swing/plaf/basic/BasicDirectoryModel.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/BasicDirectoryModel.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2011, 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<Object> implements PropertyChangeListener {
 
     private JFileChooser filechooser = null;
--- a/jdk/src/share/classes/javax/swing/plaf/basic/BasicFileChooserUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/BasicFileChooserUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -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 {
 
         /**
--- a/jdk/src/share/classes/javax/swing/plaf/basic/BasicHTML.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/BasicHTML.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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.
      * </ul>
      */
+    @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;
--- a/jdk/src/share/classes/javax/swing/plaf/basic/BasicListUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/BasicListUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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 {
 
         /**
--- a/jdk/src/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -393,6 +393,7 @@
             if (nl >= 0) {
                 // break up newlines
                 if (nl == 0) {
+                    @SuppressWarnings("serial") // anonymous class
                     JPanel breakPanel = new JPanel() {
                         public Dimension getPreferredSize() {
                             Font       f = getFont();
@@ -1338,6 +1339,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;
 
@@ -1431,6 +1433,7 @@
             return button;
         }
 
+        @SuppressWarnings("serial") // Superclass is not serializable across versions
         private static class ConstrainedButton extends JButton {
             int minimumWidth;
 
--- a/jdk/src/share/classes/javax/swing/plaf/basic/BasicRootPaneUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/BasicRootPaneUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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);
--- a/jdk/src/share/classes/javax/swing/plaf/basic/BasicSliderUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/BasicSliderUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -1894,6 +1894,7 @@
      * This class should be treated as a &quot;protected&quot; inner class.
      * Instantiate it only within subclasses of <code>Foo</code>.
      */
+    @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
--- a/jdk/src/share/classes/javax/swing/plaf/basic/BasicSpinnerUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/BasicSpinnerUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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;
--- a/jdk/src/share/classes/javax/swing/plaf/basic/BasicSplitPaneUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/BasicSplitPaneUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -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) {
--- a/jdk/src/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -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;
--- a/jdk/src/share/classes/javax/swing/plaf/basic/BasicTableUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/BasicTableUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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 {
 
         /**
--- a/jdk/src/share/classes/javax/swing/plaf/basic/BasicToolBarUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/BasicToolBarUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -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;
 
@@ -1370,6 +1374,7 @@
         }
     }
 
+    @SuppressWarnings("serial") // Same-version serialization only
     protected class DragWindow extends Window
     {
         Color borderColor = Color.gray;
--- a/jdk/src/share/classes/javax/swing/plaf/basic/BasicTreeUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/BasicTreeUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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<TreePath> {
 
         private JTree tree;
--- a/jdk/src/share/classes/javax/swing/plaf/basic/CenterLayout.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/CenterLayout.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -34,6 +34,7 @@
   * @author Tom Santos
   * @author Steve Wilson
   */
+@SuppressWarnings("serial") // Same-version serialization only
 class CenterLayout implements LayoutManager, Serializable {
     public void addLayoutComponent(String name, Component comp) { }
     public void removeLayoutComponent(Component comp) { }
--- a/jdk/src/share/classes/javax/swing/plaf/basic/DefaultMenuLayout.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/DefaultMenuLayout.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -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);
--- a/jdk/src/share/classes/javax/swing/plaf/basic/LazyActionMap.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/LazyActionMap.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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,6 +35,7 @@
  *
  * @author Scott Violet
  */
+@SuppressWarnings("serial") // Same-version serialization only
 class LazyActionMap extends ActionMapUIResource {
     /**
      * Object to invoke <code>loadActionMap</code> on. This may be
--- a/jdk/src/share/classes/javax/swing/plaf/metal/MetalBorders.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/metal/MetalBorders.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -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 );
 
--- a/jdk/src/share/classes/javax/swing/plaf/metal/MetalComboBoxIcon.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/metal/MetalComboBoxIcon.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -40,6 +40,7 @@
  * @see MetalComboBoxUI
  * @author Tom Santos
  */
+@SuppressWarnings("serial") // Same-version serialization only
 public class MetalComboBoxIcon implements Icon, Serializable {
 
     /**
--- a/jdk/src/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -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<Object> implements ComboBoxModel<Object> {
         Vector<File> directories = new Vector<File>();
         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") // Same-version serialization only
     protected class FilterComboBoxModel extends AbstractListModel<Object> implements ComboBoxModel<Object>, PropertyChangeListener {
         protected FileFilter[] filters;
         protected FilterComboBoxModel() {
@@ -1144,6 +1153,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");
@@ -1244,6 +1254,7 @@
         }
     }
 
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     private class AlignedLabel extends JLabel {
         private AlignedLabel[] group;
         private int maxWidth = 0;
--- a/jdk/src/share/classes/javax/swing/plaf/metal/MetalInternalFrameTitlePane.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/metal/MetalInternalFrameTitlePane.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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;
--- a/jdk/src/share/classes/javax/swing/plaf/metal/MetalTitlePane.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/metal/MetalTitlePane.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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 <code>close</code> the <code>Window</code>.
      */
+    @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 <code>iconfiy</code> the <code>Frame</code>.
      */
+    @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 <code>restore</code> the <code>Frame</code>.
      */
+    @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 <code>restore</code> the <code>Frame</code>.
      */
+    @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
      * <code>JRootPane</code>.
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     private class SystemMenuBar extends JMenuBar {
         public void paint(Graphics g) {
             if (isOpaque()) {
--- a/jdk/src/share/classes/javax/swing/plaf/metal/OceanTheme.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/metal/OceanTheme.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -50,6 +50,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);
@@ -97,6 +98,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;
 
--- a/jdk/src/share/classes/javax/swing/plaf/multi/MultiLookAndFeel.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/multi/MultiLookAndFeel.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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);
--- a/jdk/src/share/classes/javax/swing/plaf/nimbus/DerivedColor.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/nimbus/DerivedColor.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -38,6 +38,7 @@
  *
  * @author Jasper Potts
  */
+@SuppressWarnings("serial") // Same-version serialization only
 class DerivedColor extends Color {
     private final String uiDefaultParentName;
     private final float hOffset, sOffset, bOffset;
@@ -173,6 +174,7 @@
         return src == null ? s : s + " pColor=" + src.getRed() + "," + src.getGreen() + "," + src.getBlue();
     }
 
+    @SuppressWarnings("serial") // Same-version serialization only
     static class UIResource extends DerivedColor implements javax.swing.plaf.UIResource {
         UIResource(String uiDefaultParentName, float hOffset, float sOffset,
                    float bOffset, int aOffset) {
--- a/jdk/src/share/classes/javax/swing/plaf/nimbus/NimbusLookAndFeel.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/nimbus/NimbusLookAndFeel.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -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 */
--- a/jdk/src/share/classes/javax/swing/plaf/nimbus/TableScrollPaneCorner.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/nimbus/TableScrollPaneCorner.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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{
 
     /**
--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthArrowButton.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthArrowButton.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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;
 
--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthBorder.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthBorder.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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;
--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthComboBoxUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthComboBoxUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2013, 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<Object>, 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 {
         /**
--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthComboPopup.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthComboPopup.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -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);
--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthDesktopIconUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthDesktopIconUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2013, 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());
--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthDesktopPaneUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthDesktopPaneUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2013, 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) {
--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthInternalFrameTitlePane.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthInternalFrameTitlePane.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2013, 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 { }
 
--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthListUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthListUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2013, 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";
--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthMenuLayout.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthMenuLayout.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2013, 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);
--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthParser.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthParser.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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;
 
--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthScrollBarUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthScrollBarUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2013, 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) {
--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthScrollPaneUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthScrollPaneUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2013, 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;
 
--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthSplitPaneDivider.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthSplitPaneDivider.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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);
--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthSplitPaneUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthSplitPaneUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2013, 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) {
--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthTabbedPaneUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthTabbedPaneUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2013, 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) {
--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthTableHeaderUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthTableHeaderUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2013, 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);
--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthTableUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthTableUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2013, 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;
--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthTreeUI.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthTreeUI.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2013, 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() {
--- a/jdk/src/share/classes/javax/swing/text/ChangedCharSetException.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/ChangedCharSetException.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -32,6 +32,7 @@
  *
  * @author Sunita Mani
  */
+@SuppressWarnings("serial") // Same-version serialization only
 public class ChangedCharSetException extends IOException {
 
     String charSetSpec;
--- a/jdk/src/share/classes/javax/swing/text/ComponentView.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/ComponentView.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
--- a/jdk/src/share/classes/javax/swing/text/DefaultEditorKit.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/DefaultEditorKit.java	Sun Mar 23 13:49:48 2014 -0700
@@ -70,6 +70,7 @@
  *
  * @author  Timothy Prinzing
  */
+@SuppressWarnings("serial") // Same-version serialization only
 public class DefaultEditorKit extends EditorKit {
 
     /**
@@ -1030,6 +1031,7 @@
      * @see DefaultEditorKit#deletePrevCharAction
      * @see DefaultEditorKit#getActions
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     static class DeletePrevCharAction extends TextAction {
 
         /**
@@ -1088,6 +1090,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. */
@@ -1139,6 +1142,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);
@@ -1213,6 +1217,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. */
@@ -1238,6 +1243,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. */
@@ -1412,6 +1418,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. */
@@ -1571,6 +1578,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. */
@@ -1625,6 +1633,7 @@
         private boolean left;
     }
 
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     static class DumpModelAction extends TextAction {
 
         DumpModelAction() {
@@ -1647,6 +1656,7 @@
      * getNextVisualPositionFrom method. Constructor indicates direction
      * to use.
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     static class NextVisualPositionAction extends TextAction {
 
         /**
@@ -1734,6 +1744,7 @@
      * @see DefaultEditorKit#selectBeginWordAction
      * @see DefaultEditorKit#getActions
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     static class BeginWordAction extends TextAction {
 
         /**
@@ -1774,6 +1785,7 @@
      * @see DefaultEditorKit#selectEndWordAction
      * @see DefaultEditorKit#getActions
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     static class EndWordAction extends TextAction {
 
         /**
@@ -1814,6 +1826,7 @@
      * @see DefaultEditorKit#selectPreviousWordAction
      * @see DefaultEditorKit#getActions
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     static class PreviousWordAction extends TextAction {
 
         /**
@@ -1873,6 +1886,7 @@
      * @see DefaultEditorKit#selectNextWordAction
      * @see DefaultEditorKit#getActions
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     static class NextWordAction extends TextAction {
 
         /**
@@ -1938,6 +1952,7 @@
      * @see DefaultEditorKit#selectBeginLineAction
      * @see DefaultEditorKit#getActions
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     static class BeginLineAction extends TextAction {
 
         /**
@@ -1978,6 +1993,7 @@
      * @see DefaultEditorKit#selectEndLineAction
      * @see DefaultEditorKit#getActions
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     static class EndLineAction extends TextAction {
 
         /**
@@ -2018,6 +2034,7 @@
      * @see DefaultEditorKit#selectBeginParagraphAction
      * @see DefaultEditorKit#getActions
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     static class BeginParagraphAction extends TextAction {
 
         /**
@@ -2055,6 +2072,7 @@
      * @see DefaultEditorKit#selectEndParagraphAction
      * @see DefaultEditorKit#getActions
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     static class EndParagraphAction extends TextAction {
 
         /**
@@ -2092,6 +2110,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. */
@@ -2120,6 +2139,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. */
@@ -2150,6 +2170,7 @@
      * @see DefaultEditorKit#endAction
      * @see DefaultEditorKit#getActions
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     static class SelectWordAction extends TextAction {
 
         /**
@@ -2179,6 +2200,7 @@
      * @see DefaultEditorKit#endAction
      * @see DefaultEditorKit#getActions
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     static class SelectLineAction extends TextAction {
 
         /**
@@ -2208,6 +2230,7 @@
      * @see DefaultEditorKit#endAction
      * @see DefaultEditorKit#getActions
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     static class SelectParagraphAction extends TextAction {
 
         /**
@@ -2237,6 +2260,7 @@
      * @see DefaultEditorKit#endAction
      * @see DefaultEditorKit#getActions
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     static class SelectAllAction extends TextAction {
 
         /**
@@ -2266,6 +2290,7 @@
      * @see DefaultEditorKit#unselectAction
      * @see DefaultEditorKit#getActions
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     static class UnselectAction extends TextAction {
 
         /**
@@ -2290,6 +2315,7 @@
      * @see DefaultEditorKit#toggleComponentOrientationAction
      * @see DefaultEditorKit#getActions
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     static class ToggleComponentOrientationAction extends TextAction {
 
         /**
--- a/jdk/src/share/classes/javax/swing/text/EditorKit.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/EditorKit.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -45,6 +45,7 @@
  *
  * @author  Timothy Prinzing
  */
+@SuppressWarnings("serial") // Same-version serialization only
 public abstract class EditorKit implements Cloneable, Serializable {
 
     /**
--- a/jdk/src/share/classes/javax/swing/text/GapContent.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/GapContent.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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();
--- a/jdk/src/share/classes/javax/swing/text/GapVector.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/GapVector.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -41,6 +41,7 @@
  * @author  Timothy Prinzing
  * @see GapContent
  */
+@SuppressWarnings("serial") // Data in fields not necessarily serializable
 abstract class GapVector implements Serializable {
 
 
--- a/jdk/src/share/classes/javax/swing/text/StateInvariantError.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/StateInvariantError.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -31,6 +31,7 @@
  *
  * @author  Timothy Prinzing
  */
+@SuppressWarnings("serial") // Same-version serialization only
 class StateInvariantError extends Error
 {
     /**
--- a/jdk/src/share/classes/javax/swing/text/StyledEditorKit.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/StyledEditorKit.java	Sun Mar 23 13:49:48 2014 -0700
@@ -44,6 +44,7 @@
  *
  * @author  Timothy Prinzing
  */
+@SuppressWarnings("serial") // Same-version serialization only
 public class StyledEditorKit extends DefaultEditorKit {
 
     /**
@@ -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;
 
--- a/jdk/src/share/classes/javax/swing/text/html/CSS.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/html/CSS.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -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<String, Float> lengthMapping = new Hashtable<String, Float>(6);
         static Hashtable<String, Float> w3cLengthMapping = new Hashtable<String, Float>(6);
--- a/jdk/src/share/classes/javax/swing/text/html/CSSBorder.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/html/CSSBorder.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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.  */
--- a/jdk/src/share/classes/javax/swing/text/html/CommentView.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/html/CommentView.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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);
--- a/jdk/src/share/classes/javax/swing/text/html/FormSubmitEvent.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/html/FormSubmitEvent.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -34,7 +34,7 @@
  * @since 1.5
  * @author    Denis Sharypov
  */
-
+@SuppressWarnings("serial") // Superclass is not serializable across versions
 public class FormSubmitEvent extends HTMLFrameHyperlinkEvent {
 
     /**
--- a/jdk/src/share/classes/javax/swing/text/html/FrameView.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/html/FrameView.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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);
--- a/jdk/src/share/classes/javax/swing/text/html/HTML.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/html/HTML.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -283,6 +283,7 @@
 
     // There is no unique instance of UnknownTag, so we allow it to be
     // Serializable.
+    @SuppressWarnings("serial") // Same-version serialization only
     public static class UnknownTag extends Tag implements Serializable {
 
         /**
--- a/jdk/src/share/classes/javax/swing/text/html/HTMLEditorKit.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/html/HTMLEditorKit.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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", "<hr>", 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. */
--- a/jdk/src/share/classes/javax/swing/text/html/HTMLFrameHyperlinkEvent.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/html/HTMLFrameHyperlinkEvent.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -35,7 +35,7 @@
  *
  * @author Sunita Mani
  */
-
+@SuppressWarnings("serial") // Superclass is not serializable across versions
 public class HTMLFrameHyperlinkEvent extends HyperlinkEvent {
 
     /**
--- a/jdk/src/share/classes/javax/swing/text/html/HiddenTagView.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/html/HiddenTagView.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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) {
--- a/jdk/src/share/classes/javax/swing/text/html/Map.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/html/Map.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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;
--- a/jdk/src/share/classes/javax/swing/text/html/MuxingAttributeSet.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/html/MuxingAttributeSet.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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 <code>AttributeSet</code>s.
  *
  */
+@SuppressWarnings("serial") // Same-version serialization only
 class MuxingAttributeSet implements AttributeSet, Serializable {
     /**
      * Creates a <code>MuxingAttributeSet</code> with the passed in
--- a/jdk/src/share/classes/javax/swing/text/html/OptionComboBoxModel.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/html/OptionComboBoxModel.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2011, 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<E> extends DefaultComboBoxModel<E> implements Serializable {
 
     private Option selectedOption = null;
--- a/jdk/src/share/classes/javax/swing/text/html/OptionListModel.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/html/OptionListModel.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -42,7 +42,7 @@
  *
   @author Sunita Mani
  */
-
+@SuppressWarnings("serial") // Superclass is not serializable across versions
 class OptionListModel<E> extends DefaultListModel<E> implements ListSelectionModel, Serializable {
 
 
--- a/jdk/src/share/classes/javax/swing/text/html/StyleSheet.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/html/StyleSheet.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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;
--- a/jdk/src/share/classes/javax/swing/text/html/TextAreaDocument.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/html/TextAreaDocument.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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;
--- a/jdk/src/share/classes/javax/swing/text/html/parser/AttributeList.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/html/parser/AttributeList.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -44,6 +44,7 @@
  * @author      Arthur Van Hoff
  *
  */
+@SuppressWarnings("serial") // Same-version serialization only
 public final
 class AttributeList implements DTDConstants, Serializable {
     public String name;
--- a/jdk/src/share/classes/javax/swing/text/html/parser/ContentModel.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/html/parser/ContentModel.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -40,6 +40,7 @@
  * @author   Arthur van Hoff
  *
  */
+@SuppressWarnings("serial") // Same-version serialization only
 public final class ContentModel implements Serializable {
     /**
      * Type. Either '*', '?', '+', ',', '|', '&amp;'.
--- a/jdk/src/share/classes/javax/swing/text/html/parser/Element.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/html/parser/Element.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -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;
--- a/jdk/src/share/classes/javax/swing/text/html/parser/ParserDelegator.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/html/parser/ParserDelegator.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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() {
--- a/jdk/src/share/classes/javax/swing/text/rtf/RTFEditorKit.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/text/rtf/RTFEditorKit.java	Sun Mar 23 13:49:48 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2000, 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
@@ -40,6 +40,7 @@
  *
  * @author  Timothy Prinzing (of this class, not the package!)
  */
+@SuppressWarnings("serial") // Same-version serialization only
 public class RTFEditorKit extends StyledEditorKit {
 
     /**
--- a/jdk/src/share/classes/javax/swing/tree/ExpandVetoException.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/tree/ExpandVetoException.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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,6 +36,7 @@
  *
  * @author Scott Violet
  */
+@SuppressWarnings("serial") // Same-version serialization only
 public class ExpandVetoException extends Exception {
     /** The event that the exception was created for. */
     protected TreeExpansionEvent      event;
--- a/jdk/src/share/classes/javax/swing/undo/AbstractUndoableEdit.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/undo/AbstractUndoableEdit.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -35,6 +35,7 @@
  *
  * @author Ray Ryan
  */
+@SuppressWarnings("serial") // Same-version serialization only
 public class AbstractUndoableEdit implements UndoableEdit, Serializable {
 
     /**
--- a/jdk/src/share/classes/javax/swing/undo/CompoundEdit.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/undo/CompoundEdit.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -32,6 +32,7 @@
  *
  * @author Ray Ryan
  */
+@SuppressWarnings("serial") // Same-version serialization only
 public class CompoundEdit extends AbstractUndoableEdit {
     /**
      * True if this edit has never received <code>end</code>.
--- a/jdk/src/share/classes/javax/swing/undo/StateEdit.java	Fri Mar 21 11:33:52 2014 -0700
+++ b/jdk/src/share/classes/javax/swing/undo/StateEdit.java	Sun Mar 23 13:49:48 2014 -0700
@@ -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
@@ -55,7 +55,7 @@
  *
  * @author Ray Ryan
  */
-
+@SuppressWarnings("serial") // Same-version serialization only
 public class StateEdit
         extends AbstractUndoableEdit {