src/share/classes/com/sun/java/swing/plaf/windows/WindowsTreeUI.java
Print this page
*** 125,134 ****
--- 125,135 ----
* 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,186 ****
--- 178,188 ----
* 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,202 ****
--- 195,205 ----
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