Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-06-01 09:55:04 -0400
committerUwe Stieber2012-06-01 09:55:04 -0400
commit0a7fc28da4ba46ca5d62660c7a9bd31c75c1f068 (patch)
treeaa32e0ca355e7f073ca440d556fd1705f7eec99b /target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src
parent3968410db7f1f712726b219f3f6fc90c9f0663da (diff)
downloadorg.eclipse.tcf-0a7fc28da4ba46ca5d62660c7a9bd31c75c1f068.tar.gz
org.eclipse.tcf-0a7fc28da4ba46ca5d62660c7a9bd31c75c1f068.tar.xz
org.eclipse.tcf-0a7fc28da4ba46ca5d62660c7a9bd31c75c1f068.zip
Target Explorer: Fix FindBugs warnings
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/AbstractServiceManager.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/AbstractServiceManager.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/AbstractServiceManager.java
index e07256cc0..c1edcaed9 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/AbstractServiceManager.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/AbstractServiceManager.java
@@ -257,6 +257,25 @@ public abstract class AbstractServiceManager {
return expression;
}
+ /* (non-Javadoc)
+ * @see java.lang.Object#equals(java.lang.Object)
+ */
+ @Override
+ public boolean equals(Object obj) {
+ if (obj instanceof ServiceProxy) {
+ return id.equals(((ServiceProxy)obj).id);
+ }
+ return super.equals(obj);
+ }
+
+ /* (non-Javadoc)
+ * @see java.lang.Object#hashCode()
+ */
+ @Override
+ public int hashCode() {
+ return id.hashCode();
+ }
+
public boolean equals(IService service) {
Assert.isNotNull(service);
return clazz != null ? clazz.equals(service.getClass().getCanonicalName()) : false;

Back to the top