diff options
author | Eugene Tarassov | 2013-10-28 11:17:16 +0000 |
---|---|---|
committer | Eugene Tarassov | 2013-10-28 11:17:16 +0000 |
commit | 48973d275d1d8e2f2b999bfed367b0af0c8d6a8a (patch) | |
tree | 15f2bf5ef36d6651e53a65b51deb2e27faa107f0 /plugins/org.eclipse.tcf.debug | |
parent | f63abaf7212ce860e0df2887668f72d688084cbb (diff) | |
download | org.eclipse.tcf-48973d275d1d8e2f2b999bfed367b0af0c8d6a8a.tar.gz org.eclipse.tcf-48973d275d1d8e2f2b999bfed367b0af0c8d6a8a.tar.xz org.eclipse.tcf-48973d275d1d8e2f2b999bfed367b0af0c8d6a8a.zip |
TCF Debugger: fixed FindBugs warning: This code compares a java.lang.String parameter for reference equality using the == or != operators
Diffstat (limited to 'plugins/org.eclipse.tcf.debug')
-rw-r--r-- | plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFLaunch.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFLaunch.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFLaunch.java index 38b86592e..dda685d62 100644 --- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFLaunch.java +++ b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFLaunch.java @@ -734,13 +734,13 @@ public class TCFLaunch extends Launch { /** * Returns the client ID to use to mark the path map rules managed by this client. - * + * * @return The client ID. */ protected String getClientID() { return Activator.getClientID(); } - + /** * Add custom path map rules to the host path map before applying the path map. * @@ -765,7 +765,7 @@ public class TCFLaunch extends Launch { /** * Apply the path map to the given channel. - * + * * @param channel The channel. Must not be <code>null</code>. * @param map The path map. Must not be <code>null</code>. * @param done The done to invoke. Must not be <code>null</code>. @@ -774,7 +774,7 @@ public class TCFLaunch extends Launch { IPathMap path_map_service = getService(IPathMap.class); path_map_service.set(map, done); } - + private String[] toArgsArray(String file, String cmd) { // Create arguments list from a command line. int i = 0; @@ -1295,7 +1295,7 @@ public class TCFLaunch extends Launch { return; } for (final String rx_id : uart_rx_stream_ids.keySet()) { - if (uart_rx_stream_ids.get(rx_id) != prs_id) continue; + if (!prs_id.equals(uart_rx_stream_ids.get(rx_id))) continue; streams.write(rx_id, buf, pos, len, new IStreams.DoneWrite() { public void doneWrite(IToken token, Exception error) { if (error == null) return; |