Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-06-01 10:48:11 -0400
committerUwe Stieber2012-06-01 10:48:11 -0400
commitbb31a5919ed3d90b7d0017d8427b7ee4b61ae26c (patch)
tree95c0514f232e43ab52ae7042c9e51362c0914816 /target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src
parent0a7fc28da4ba46ca5d62660c7a9bd31c75c1f068 (diff)
downloadorg.eclipse.tcf-bb31a5919ed3d90b7d0017d8427b7ee4b61ae26c.tar.gz
org.eclipse.tcf-bb31a5919ed3d90b7d0017d8427b7ee4b61ae26c.tar.xz
org.eclipse.tcf-bb31a5919ed3d90b7d0017d8427b7ee4b61ae26c.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.java4
1 files changed, 2 insertions, 2 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 c1edcaed9..8cdf00fd9 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
@@ -263,7 +263,7 @@ public abstract class AbstractServiceManager {
@Override
public boolean equals(Object obj) {
if (obj instanceof ServiceProxy) {
- return id.equals(((ServiceProxy)obj).id);
+ return id != null ? id.equals(((ServiceProxy)obj).id) : ((ServiceProxy)obj).id == null;
}
return super.equals(obj);
}
@@ -273,7 +273,7 @@ public abstract class AbstractServiceManager {
*/
@Override
public int hashCode() {
- return id.hashCode();
+ return id != null ? id.hashCode() : super.hashCode();
}
public boolean equals(IService service) {

Back to the top