Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2001-07-03 15:21:12 +0000
committerDarin Swanson2001-07-03 15:21:12 +0000
commitde2c2953c51f145c6d2978ffeafd84efea715b1a (patch)
tree01c9889292ba1d02ac69de542f840a5c3b595b4b
parent7a8b79b0f264b170a2d25f9da4ff848f1d4c5dcc (diff)
downloadeclipse.platform.debug-de2c2953c51f145c6d2978ffeafd84efea715b1a.tar.gz
eclipse.platform.debug-de2c2953c51f145c6d2978ffeafd84efea715b1a.tar.xz
eclipse.platform.debug-de2c2953c51f145c6d2978ffeafd84efea715b1a.zip
1GF9QKD
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/internal/core/ListenerList.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/ListenerList.java b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/ListenerList.java
index b096398e6..8688726fd 100644
--- a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/ListenerList.java
+++ b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/ListenerList.java
@@ -58,7 +58,7 @@ public class ListenerList {
*
* @param listener a listener
*/
- public void add(Object listener) {
+ public synchronized void add(Object listener) {
if (listener == null) {
throw new IllegalArgumentException();
}
@@ -88,7 +88,7 @@ public class ListenerList {
* to the listener list during the notification will have no effect on the
* notification itself.
*/
- public Object[] getListeners() {
+ public synchronized Object[] getListeners() {
if (fSize == 0)
return EmptyArray;
Object[] result= new Object[fSize];
@@ -110,7 +110,7 @@ public class ListenerList {
*
* @param listener a listener
*/
- public void remove(Object listener) {
+ public synchronized void remove(Object listener) {
if (listener == null) {
throw new IllegalArgumentException();
}

Back to the top