Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-04-22 12:19:24 +0000
committerUwe Stieber2012-04-22 12:19:24 +0000
commitcc9c441102b0d923c5d2fd87fd7b4cc8c7cab202 (patch)
tree9cf677f2c6f26e588313cbc9bc322127f51c4e25 /target_explorer/plugins/org.eclipse.tcf.te.tcf.terminals.core/src
parentbcfab58eafff418aee762e04e65c37a73b1ef431 (diff)
downloadorg.eclipse.tcf-cc9c441102b0d923c5d2fd87fd7b4cc8c7cab202.tar.gz
org.eclipse.tcf-cc9c441102b0d923c5d2fd87fd7b4cc8c7cab202.tar.xz
org.eclipse.tcf-cc9c441102b0d923c5d2fd87fd7b4cc8c7cab202.zip
Target Explorer: Fix FindBugs warning: WMI_WRONG_MAP_ITERATOR
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.terminals.core/src')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.terminals.core/src/org/eclipse/tcf/te/tcf/terminals/core/launcher/TerminalsLauncher.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.terminals.core/src/org/eclipse/tcf/te/tcf/terminals/core/launcher/TerminalsLauncher.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.terminals.core/src/org/eclipse/tcf/te/tcf/terminals/core/launcher/TerminalsLauncher.java
index 27ad44d86..48fdbbc1f 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.terminals.core/src/org/eclipse/tcf/te/tcf/terminals/core/launcher/TerminalsLauncher.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.terminals.core/src/org/eclipse/tcf/te/tcf/terminals/core/launcher/TerminalsLauncher.java
@@ -24,6 +24,7 @@ import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import java.util.Map.Entry;
import java.util.concurrent.atomic.AtomicReference;
import org.eclipse.core.runtime.Assert;
@@ -809,9 +810,9 @@ public class TerminalsLauncher extends PlatformObject implements ITerminalsLaunc
if (env == null) return null;
List<String> envList = new ArrayList<String>();
- for (String key : env.keySet()) {
- String entry = key.trim() + "=" + env.get(key).trim(); //$NON-NLS-1$
- envList.add(entry);
+ for (Entry<String, String> entry : env.entrySet()) {
+ String listEntry = entry.getKey().trim() + "=" + entry.getValue().trim(); //$NON-NLS-1$
+ envList.add(listEntry);
}
return envList.toArray(new String[envList.size()]);

Back to the top