src/share/classes/com/sun/java/swing/plaf/motif/MotifTreeCellRenderer.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1997, 1999, 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
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -44,10 +44,11 @@
  * version of Swing.  A future release of Swing will provide support for
  * long term persistence.
  *
  * @author Jeff Dinkins
  */
+@SuppressWarnings("serial") // Superclass is not serializable across versions
 public class MotifTreeCellRenderer extends DefaultTreeCellRenderer
 {
     static final int LEAF_SIZE = 13;
     static final Icon LEAF_ICON = new IconUIResource(new TreeLeafIcon());
 

@@ -67,10 +68,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 TreeLeafIcon implements Icon, Serializable {
 
         Color bg;
         Color shadow;
         Color highlight;