src/share/classes/com/sun/java/swing/plaf/windows/WindowsTreeUI.java

Print this page

        

@@ -125,10 +125,11 @@
      * future Swing releases.  The current serialization support is appropriate
      * for short term storage or RMI between applications running the same
      * version of Swing.  A future release of Swing will provide support for
      * long term persistence.
      */
+    @SuppressWarnings("serial") // Same-version serialization only
     public static class ExpandedIcon implements Icon, Serializable {
 
         static public Icon createExpandedIcon() {
             return new ExpandedIcon();
         }

@@ -177,10 +178,11 @@
      * future Swing releases.  The current serialization support is appropriate
      * for short term storage or RMI between applications running the same
      * version of Swing.  A future release of Swing will provide support for
      * long term persistence.
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     public static class CollapsedIcon extends ExpandedIcon {
         static public Icon createCollapsedIcon() {
             return new CollapsedIcon();
         }
 

@@ -193,10 +195,11 @@
             g.drawLine(x + HALF_SIZE, y + 2, x + HALF_SIZE, y + (SIZE - 3));
             }
         }
     }
 
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     public class WindowsTreeCellRenderer extends DefaultTreeCellRenderer {
 
         /**
          * Configures the renderer based on the passed in components.
          * The value is set from messaging the tree with