summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-17 11:05:24 +0200
committerNoel Grandin <noel@peralex.com>2014-12-19 10:41:56 +0200
commit52d844485820c8bd1db8e15ce06ab6c76a8b6156 (patch)
tree54453a73d15fcc5ec8999913e375dae90269e88b /toolkit
parent567592c9e24075173a6f396b81bff14f74596f83 (diff)
java: synching on a global object is not very useful
when you're using it as a local lock Change-Id: Ie7f42176f7b582c6dad426d9f8eb0a846a3519c2
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/test/accessibility/EventQueue.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/toolkit/test/accessibility/EventQueue.java b/toolkit/test/accessibility/EventQueue.java
index 8449c6416ebc..84894263b142 100644
--- a/toolkit/test/accessibility/EventQueue.java
+++ b/toolkit/test/accessibility/EventQueue.java
@@ -66,7 +66,6 @@ class EventQueue
private EventQueue ()
{
- maMonitor = Boolean.TRUE;
maRegularQueue = new LinkedList<Runnable>();
maDisposingQueue = new LinkedList<Runnable>();
new Thread(this, "AWB.EventQueue").start();
@@ -133,7 +132,7 @@ class EventQueue
}
private static EventQueue maInstance = null;
- private final Object maMonitor;
+ private final Object maMonitor = new Object();
private final LinkedList<Runnable> maRegularQueue;
private final LinkedList<Runnable> maDisposingQueue;
}