6612752: Incorrect getOpenIcon() instanceof in the DefaultTreeCellRenderer
authoralexsch
Wed, 02 Apr 2014 18:34:08 +0400
changeset 24154 1c6c9e47c9a0
parent 24153 2c19973ab9f2
child 24155 53e618ceb567
6612752: Incorrect getOpenIcon() instanceof in the DefaultTreeCellRenderer Reviewed-by: serb, pchelko
jdk/src/share/classes/javax/swing/tree/DefaultTreeCellRenderer.java
--- 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)) {