Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/Activator.java')
-rw-r--r--bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/Activator.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/Activator.java b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/Activator.java
index fb5cbde09..5b62860d2 100644
--- a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/Activator.java
+++ b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/Activator.java
@@ -310,9 +310,7 @@ public class Activator implements BundleActivator {
private static void closeURLTrackerServices() {
synchronized (urlTrackers) {
if (!urlTrackers.isEmpty()) {
- for (Iterator<String> iter = urlTrackers.keySet().iterator(); iter.hasNext();) {
- String key = iter.next();
- ServiceTracker<Object, URLConverter> tracker = urlTrackers.get(key);
+ for (ServiceTracker<Object, URLConverter> tracker : urlTrackers.values()) {
tracker.close();
}
urlTrackers = new HashMap<>();

Back to the top