jdk/src/share/classes/javax/swing/text/StyledEditorKit.java
changeset 23697 e556a715949f
parent 22574 7f8ce0c8c20a
--- 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;