Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-04-22 08:19:24 -0400
committerUwe Stieber2012-04-22 08:19:24 -0400
commitcc9c441102b0d923c5d2fd87fd7b4cc8c7cab202 (patch)
tree9cf677f2c6f26e588313cbc9bc322127f51c4e25 /target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence
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.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/AbstractGsonMapPersistenceDelegate.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/AbstractGsonMapPersistenceDelegate.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/AbstractGsonMapPersistenceDelegate.java
index 8c702f258..23bf4defe 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/AbstractGsonMapPersistenceDelegate.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/AbstractGsonMapPersistenceDelegate.java
@@ -19,6 +19,7 @@ import java.io.OutputStreamWriter;
import java.net.URI;
import java.util.HashMap;
import java.util.Map;
+import java.util.Map.Entry;
import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.IPath;
@@ -200,9 +201,9 @@ public abstract class AbstractGsonMapPersistenceDelegate extends ExecutableExten
}
if (attrs != null) {
- for (String key : attrs.keySet()) {
- if (!key.endsWith(".transient")) { //$NON-NLS-1$
- result.put(key, attrs.get(key));
+ for (Entry<String, Object> entry : attrs.entrySet()) {
+ if (!entry.getKey().endsWith(".transient")) { //$NON-NLS-1$
+ result.put(entry.getKey(), entry.getValue());
}
}
}

Back to the top