Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-10-19 03:47:54 -0400
committerUwe Stieber2012-10-19 03:47:54 -0400
commitacd47895b3b5da7bf4377baee3fd07356bc3b6d5 (patch)
treeef893080b2e1ef3747706b0f15a9b2641544fe6b /target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src
parent1876248c700a87ee8e0ab702baac755b7575f099 (diff)
downloadorg.eclipse.tcf-acd47895b3b5da7bf4377baee3fd07356bc3b6d5.tar.gz
org.eclipse.tcf-acd47895b3b5da7bf4377baee3fd07356bc3b6d5.tar.xz
org.eclipse.tcf-acd47895b3b5da7bf4377baee3fd07356bc3b6d5.zip
Target Explorer: Fix map persistence delegate fromMap returns null if the input is a map
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/GsonMapPersistenceDelegate.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/GsonMapPersistenceDelegate.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/GsonMapPersistenceDelegate.java
index 7772e5f1b..71b4e4409 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/GsonMapPersistenceDelegate.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/GsonMapPersistenceDelegate.java
@@ -280,7 +280,7 @@ public class GsonMapPersistenceDelegate extends ExecutableExtension implements I
* @throws IOException
*/
protected Object fromMap(Map<String,Object> map, Object context) throws IOException {
- if (context == null || context.equals(map.getClass())) {
+ if (context == null || Map.class.equals(context)) {
return map;
}
else if (context instanceof Map) {

Back to the top