diff options
author | Noel Grandin <noel@peralex.com> | 2015-06-09 10:51:42 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-09 13:10:43 +0200 |
commit | 441407571e2a45b08bcafc507524135e48e3a2d1 (patch) | |
tree | c17dfb392adff7ca639d2e8c015465102540a626 /toolkit/test | |
parent | more exception handling cleanup in Java unit tests (diff) | |
download | core-441407571e2a45b08bcafc507524135e48e3a2d1.tar.gz core-441407571e2a45b08bcafc507524135e48e3a2d1.zip |
java:Non-synchronized method should not override a synchronized method
Change-Id: I46307828757ee1142747c14d2942515340083605
Diffstat (limited to 'toolkit/test')
-rw-r--r-- | toolkit/test/accessibility/AccessibilityTreeModel.java | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/toolkit/test/accessibility/AccessibilityTreeModel.java b/toolkit/test/accessibility/AccessibilityTreeModel.java index bc6abf8457eb..49f3b4ea3c78 100644 --- a/toolkit/test/accessibility/AccessibilityTreeModel.java +++ b/toolkit/test/accessibility/AccessibilityTreeModel.java @@ -106,7 +106,7 @@ public class AccessibilityTreeModel the child and add the child to the canvas. */ @Override - public Object getChild (Object aParent, int nIndex) + public synchronized Object getChild (Object aParent, int nIndex) { AccessibleTreeNode aChild = (AccessibleTreeNode)super.getChild (aParent, nIndex); @@ -119,17 +119,6 @@ public class AccessibilityTreeModel return aChild; } - @Override - public Object getChildNoCreate (Object aParent, int nIndex) - { - AccessibleTreeNode aChild = (AccessibleTreeNode)super.getChildNoCreate (aParent, nIndex); - - return aChild; - } - - - - /** Remove a node (and all children) from the tree model. */ private boolean removeChild (AccessibleTreeNode aNode) |