Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2015-04-30 06:19:29 -0400
committerUwe Stieber2015-04-30 06:19:29 -0400
commitb1de0d6de409e2e68404bd56ec3b9d9639d5120e (patch)
tree09b76e4003d637561634bfcd60bb21be62e33652
parenteb962df3f80471ddc22939e50e136f23799856ca (diff)
downloadorg.eclipse.tcf-b1de0d6de409e2e68404bd56ec3b9d9639d5120e.tar.gz
org.eclipse.tcf-b1de0d6de409e2e68404bd56ec3b9d9639d5120e.tar.xz
org.eclipse.tcf-b1de0d6de409e2e68404bd56ec3b9d9639d5120e.zip
Target Explorer: Fix findbugs
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime/src/org/eclipse/tcf/te/runtime/events/EventManager.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime/src/org/eclipse/tcf/te/runtime/events/EventManager.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime/src/org/eclipse/tcf/te/runtime/events/EventManager.java
index 939d15f44..0e7c65d7b 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime/src/org/eclipse/tcf/te/runtime/events/EventManager.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime/src/org/eclipse/tcf/te/runtime/events/EventManager.java
@@ -577,9 +577,8 @@ public final class EventManager {
}
// If the bundle could not be found or is not yet active, don't try to load the class
else {
- if (!eventTypesNotLoaded.contains(className)) {
- eventTypesNotLoaded.add(new ClassNotLoadedItem(bundleId, className, child.getDeclaringExtension().getNamespaceIdentifier()));
- }
+ ClassNotLoadedItem item = new ClassNotLoadedItem(bundleId, className, child.getDeclaringExtension().getNamespaceIdentifier());
+ if (!eventTypesNotLoaded.contains(item)) eventTypesNotLoaded.add(item);
}
}
@@ -614,9 +613,8 @@ public final class EventManager {
}
// If the bundle could not be found or is not yet active, don't try to load the class
else {
- if (!eventSourceTypesNotLoaded.contains(className)) {
- eventSourceTypesNotLoaded.add(new ClassNotLoadedItem(bundleId, className, child.getDeclaringExtension().getNamespaceIdentifier()));
- }
+ ClassNotLoadedItem item = new ClassNotLoadedItem(bundleId, className, child.getDeclaringExtension().getNamespaceIdentifier());
+ if (!eventSourceTypesNotLoaded.contains(item)) eventSourceTypesNotLoaded.add(item);
}
}
}

Back to the top