Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-11-04 03:57:22 -0500
committerUwe Stieber2013-11-04 03:57:22 -0500
commit7e17bdd2f6e30fb59b204312e2a7ebd3d8f6a27c (patch)
tree77724fd94e5e143ed4f6d5438f6d538548a89d36 /target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core
parentff253d796de13c77029a568c0cf0a21f8d145b36 (diff)
downloadorg.eclipse.tcf-7e17bdd2f6e30fb59b204312e2a7ebd3d8f6a27c.tar.gz
org.eclipse.tcf-7e17bdd2f6e30fb59b204312e2a7ebd3d8f6a27c.tar.xz
org.eclipse.tcf-7e17bdd2f6e30fb59b204312e2a7ebd3d8f6a27c.zip
Target Explorer: Fix findbugs warnings
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/runtime/services/RuntimeModelUpdateService.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/runtime/services/RuntimeModelUpdateService.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/runtime/services/RuntimeModelUpdateService.java
index 2db351e91..574b13fd9 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/runtime/services/RuntimeModelUpdateService.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/runtime/services/RuntimeModelUpdateService.java
@@ -255,7 +255,7 @@ public class RuntimeModelUpdateService extends AbstractModelService<IRuntimeMode
// Update the system monitor context object (if necessary)
ISysMonitor.SysMonitorContext s1 = dst.getSysMonitorContext();
ISysMonitor.SysMonitorContext s2 = src.getSysMonitorContext();
- if ((s1 == null && s2 != null) || (s1 != null && s2 == null) || !s1.equals(s2)) {
+ if ((s1 == null && s2 != null) || (s1 != null && s2 == null) || (s1 != null && !s1.equals(s2))) {
dst.setSysMonitorContext(src.getSysMonitorContext());
dstNodeChanged |= true;
}
@@ -263,7 +263,7 @@ public class RuntimeModelUpdateService extends AbstractModelService<IRuntimeMode
// Update the process context object (if necessary)
IProcesses.ProcessContext p1 = dst.getProcessContext();
IProcesses.ProcessContext p2 = src.getProcessContext();
- if ((p1 == null && p2 != null) || (p1 != null && p2 == null) || !p1.equals(p2)) {
+ if ((p1 == null && p2 != null) || (p1 != null && p2 == null) || (p1 != null && !p1.equals(p2))) {
dst.setProcessContext(src.getProcessContext());
dstNodeChanged |= true;
}
@@ -297,7 +297,7 @@ public class RuntimeModelUpdateService extends AbstractModelService<IRuntimeMode
// Update the nodes only if the id's are matching
String dstContextId = dst.getStringProperty(IProcessContextNodeProperties.PROPERTY_ID);
String srcContextId = src.getStringProperty(IProcessContextNodeProperties.PROPERTY_ID);
- if ((dstContextId == null && srcContextId != null) || (dstContextId != null && srcContextId == null) || !dstContextId.equals(srcContextId)) {
+ if ((dstContextId == null && srcContextId != null) || (dstContextId != null && srcContextId == null) || (dstContextId != null && !dstContextId.equals(srcContextId))) {
return;
}

Back to the top