6612752: Incorrect getOpenIcon() instanceof in the DefaultTreeCellRenderer
Reviewed-by: serb, pchelko
--- a/jdk/src/share/classes/javax/swing/tree/DefaultTreeCellRenderer.java Wed Apr 02 17:37:34 2014 +0400
+++ b/jdk/src/share/classes/javax/swing/tree/DefaultTreeCellRenderer.java Wed Apr 02 18:34:08 2014 +0400
@@ -191,7 +191,7 @@
if (!inited || (getClosedIcon() instanceof UIResource)) {
setClosedIcon(DefaultLookup.getIcon(this, ui, "Tree.closedIcon"));
}
- if (!inited || (getOpenIcon() instanceof UIManager)) {
+ if (!inited || (getOpenIcon() instanceof UIResource)) {
setOpenIcon(DefaultLookup.getIcon(this, ui, "Tree.openIcon"));
}
if (!inited || (getTextSelectionColor() instanceof UIResource)) {