Added support for Map<String, Object>

This commit is contained in:
Maneesh Sahu-SSI 2014-09-30 21:57:21 -07:00
parent 2787fa82c6
commit 8cf9cb95f5
2 changed files with 4 additions and 2 deletions

View File

@ -45,7 +45,8 @@ public class AndroidClientCodegen extends DefaultCodegen implements CodegenConfi
"Double", "Double",
"Integer", "Integer",
"Long", "Long",
"Float") "Float",
"Object")
); );
instantiationTypes.put("array", "ArrayList"); instantiationTypes.put("array", "ArrayList");
instantiationTypes.put("map", "HashMap"); instantiationTypes.put("map", "HashMap");

View File

@ -43,7 +43,8 @@ public class JavaClientCodegen extends DefaultCodegen implements CodegenConfig {
"Double", "Double",
"Integer", "Integer",
"Long", "Long",
"Float") "Float",
"Object")
); );
instantiationTypes.put("array", "ArrayList"); instantiationTypes.put("array", "ArrayList");
instantiationTypes.put("map", "HashMap"); instantiationTypes.put("map", "HashMap");