--- old/src/share/classes/javax/swing/text/StyledEditorKit.java 2014-02-18 18:21:49.000000000 -0800 +++ new/src/share/classes/javax/swing/text/StyledEditorKit.java 2014-02-18 18:21:49.000000000 -0800 @@ -45,6 +45,7 @@ * @author Timothy Prinzing */ public class StyledEditorKit extends DefaultEditorKit { + private static final long serialVersionUID = 7002391892985555948L; /** * Creates a new EditorKit used for styled documents. @@ -170,6 +171,7 @@ /** * Creates the AttributeSet used for the selection. */ + @SuppressWarnings("serial") // anonymous class private void createInputAttributes() { inputAttributes = new SimpleAttributeSet() { public AttributeSet getResolveParent() { @@ -218,6 +220,7 @@ * input attributes when the Document changes, as if the Document * changes the attributes will almost certainly change. */ + @SuppressWarnings("serial") // JDK-implementation class class AttributeTracker implements CaretListener, PropertyChangeListener, Serializable { /** @@ -854,6 +857,7 @@ * is inserted. Beyond that, this will reset the input attributes to * what they were before the newline was inserted. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class StyledInsertBreakAction extends StyledTextAction { private SimpleAttributeSet tempSet;