src/share/classes/javax/swing/text/GapContent.java

Print this page

        

@@ -56,10 +56,11 @@
  * with a binary search.  This increases the cost of adding a
  * mark, and decreases the cost of keeping the mark updated.
  *
  * @author  Timothy Prinzing
  */
+@SuppressWarnings("serial") // Superclass is not serializable across versions
 public class GapContent extends GapVector implements AbstractDocument.Content, Serializable {
 
     /**
      * Creates a new GapContent object.  Initial size defaults to 10.
      */

@@ -575,11 +576,11 @@
         }
         marks = cleaned;
         unusedMarks = 0;
     }
 
-
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     static class MarkVector extends GapVector {
 
         MarkVector() {
             super();
         }

@@ -853,10 +854,11 @@
 
 
     /**
      * UnoableEdit created for inserts.
      */
+    @SuppressWarnings("serial") // Superclass is a JDK-implementation class
     class InsertUndo extends AbstractUndoableEdit {
         protected InsertUndo(int offset, int length) {
             super();
             this.offset = offset;
             this.length = length;

@@ -903,10 +905,11 @@
 
 
     /**
      * UndoableEdit created for removes.
      */
+    @SuppressWarnings("serial") // JDK-implementation class
     class RemoveUndo extends AbstractUndoableEdit {
         protected RemoveUndo(int offset, String string) {
             super();
             this.offset = offset;
             this.string = string;