Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-05-25 06:30:10 -0400
committerUwe Stieber2012-05-25 06:30:10 -0400
commit4d557cc7b17b91c4d6de3827b1d7668fced82366 (patch)
tree6c2b40024e4f1b094690f89fb9fb2da11eab1220 /target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src
parentc43ff2700cbc527f99e29eefe83f4586a4c2258e (diff)
downloadorg.eclipse.tcf-4d557cc7b17b91c4d6de3827b1d7668fced82366.tar.gz
org.eclipse.tcf-4d557cc7b17b91c4d6de3827b1d7668fced82366.tar.xz
org.eclipse.tcf-4d557cc7b17b91c4d6de3827b1d7668fced82366.zip
Target Explorer: Updated feature description and fix more 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.java14
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/filetransfer/FileTransferItem.java11
2 files changed, 11 insertions, 14 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 c0e459ed2..e07256cc0 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,20 +257,6 @@ 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 IService) {
- return equals((IService)obj);
- }
- if (obj instanceof ServiceProxy) {
- return equals((ServiceProxy)obj);
- }
- return super.equals(obj);
- }
-
public boolean equals(IService service) {
Assert.isNotNull(service);
return clazz != null ? clazz.equals(service.getClass().getCanonicalName()) : false;
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/filetransfer/FileTransferItem.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/filetransfer/FileTransferItem.java
index 268cf1426..bed754c4d 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/filetransfer/FileTransferItem.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/filetransfer/FileTransferItem.java
@@ -76,6 +76,17 @@ public class FileTransferItem extends PropertiesContainer implements IFileTransf
}
/* (non-Javadoc)
+ * @see org.eclipse.tcf.te.runtime.properties.PropertiesContainer#hashCode()
+ */
+ @Override
+ public int hashCode() {
+ int hc = getHostPath() != null ? getHostPath().hashCode() : 0;
+ hc = hc << 8 + (getTargetPath() != null ? getTargetPath().hashCode() : 0);
+ hc = hc << 8 + getDirection();
+ return hc;
+ }
+
+ /* (non-Javadoc)
* @see org.eclipse.tcf.te.runtime.properties.PropertiesContainer#equals(java.lang.Object)
*/
@Override

Back to the top