diff options
Diffstat (limited to 'toolkit/test/accessibility/AccessibilityTreeModelBase.java')
-rw-r--r-- | toolkit/test/accessibility/AccessibilityTreeModelBase.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/test/accessibility/AccessibilityTreeModelBase.java b/toolkit/test/accessibility/AccessibilityTreeModelBase.java index b15379e7d994..5ff2d96c9e48 100644 --- a/toolkit/test/accessibility/AccessibilityTreeModelBase.java +++ b/toolkit/test/accessibility/AccessibilityTreeModelBase.java @@ -52,7 +52,7 @@ public class AccessibilityTreeModelBase Object aChild = null; try { - if (aParent != null && aParent instanceof AccessibleTreeNode) + if (aParent instanceof AccessibleTreeNode) aChild = ((AccessibleTreeNode)aParent).getChild(nIndex); else System.out.println ("getChild called for unknown parent node"); @@ -69,7 +69,7 @@ public class AccessibilityTreeModelBase Object aChild = null; try { - if (aParent != null && aParent instanceof AccessibleTreeNode) + if (aParent instanceof AccessibleTreeNode) aChild = ((AccessibleTreeNode)aParent).getChildNoCreate(nIndex); else System.out.println ("getChild called for unknown parent node"); |