diff options
author | Markus Keller | 2016-01-25 11:18:47 +0000 |
---|---|---|
committer | Markus Keller | 2016-01-25 11:18:47 +0000 |
commit | bbadc72c2bdfa746b7579dc4096dd22381a94f6f (patch) | |
tree | 128ad2094f5718408f450763087a196036fdc435 | |
parent | b11c99ce0d8d77c7d8f4d6a8c42acc95125a05e8 (diff) | |
download | eclipse.platform.debug-I20160125-0800.tar.gz eclipse.platform.debug-I20160125-0800.tar.xz eclipse.platform.debug-I20160125-0800.zip |
Bug 486157: Adapt to ListenerList changesI20160126-0800I20160125-2000I20160125-0800
- removed outdated commented code
- avoided loop when list is empty
-rw-r--r-- | org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java | 4 | ||||
-rw-r--r-- | org.eclipse.debug.core/core/org/eclipse/debug/core/DebugPlugin.java | 12 |
2 files changed, 6 insertions, 10 deletions
diff --git a/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java b/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java index 533cfb31d..0270d9185 100644 --- a/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java +++ b/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java @@ -157,10 +157,6 @@ public class StringVariableManager implements IStringVariableManager, IPreferenc public void notify(IValueVariable[] variables, int update) { fVariables = variables; fType = update; - /* - * Object[] copiedListeners= fListeners.getListeners(); for (int i= - * 0; i < copiedListeners.length; i++) { - */ for (IValueVariableListener iValueVariableListener : fListeners) { fListener = iValueVariableListener; SafeRunner.run(this); diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/core/DebugPlugin.java b/org.eclipse.debug.core/core/org/eclipse/debug/core/DebugPlugin.java index 8ca4c9a77..4009f9a54 100644 --- a/org.eclipse.debug.core/core/org/eclipse/debug/core/DebugPlugin.java +++ b/org.eclipse.debug.core/core/org/eclipse/debug/core/DebugPlugin.java @@ -1165,12 +1165,12 @@ public class DebugPlugin extends Plugin { fEvents = events; if (!fEventFilters.isEmpty()) { fMode = NOTIFY_FILTERS; - } - for (IDebugEventFilter iDebugEventFilter : fEventFilters) { - fFilter = iDebugEventFilter; - SafeRunner.run(this); - if (fEvents == null || fEvents.length == 0) { - return; + for (IDebugEventFilter iDebugEventFilter : fEventFilters) { + fFilter = iDebugEventFilter; + SafeRunner.run(this); + if (fEvents == null || fEvents.length == 0) { + return; + } } } |