summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-17 11:01:38 +0200
committerNoel Grandin <noel@peralex.com>2014-12-19 10:41:55 +0200
commit41f4417ba4ebbb29c614ad4ac1198efce709f495 (patch)
tree9debf6d161b2d6ffe18a8b110ed6749ce9ab79cd /toolkit
parent126eea88e615f3fcc82e081a3dbc7cb85154e575 (diff)
java: dodgy synchronisation around clear
if we want to synchronize access to this datastructure, and we want to use it as a lock object, creating a new one is not a good idea Change-Id: I99c2f665242ef16611bc15a0690b8da222085efb
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/test/accessibility/NodeHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/test/accessibility/NodeHandler.java b/toolkit/test/accessibility/NodeHandler.java
index 73a36aa917a4..a172be7773b6 100644
--- a/toolkit/test/accessibility/NodeHandler.java
+++ b/toolkit/test/accessibility/NodeHandler.java
@@ -43,7 +43,7 @@ abstract class NodeHandler
{
synchronized (maChildList)
{
- maChildList = new Vector<AccessibleTreeNode> ();
+ maChildList.clear();
}
}