Skip to content

Commit

Permalink
Merge pull request mojohaus#1 from tuure/patch-1
Browse files Browse the repository at this point in the history
Avoid class cast exception
  • Loading branch information
robertotru committed May 12, 2016
2 parents cdaac08 + 52c8f0c commit b0a3dfc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private static Map<String, String> flattenMap(final Map mapOfObjects) {

final Map<String, String> propertiesMap = new LinkedHashMap<String, String>();
for (final Map.Entry<String, Object> entry : flattenedMap.entrySet()) {
propertiesMap.put(entry.getKey(), (String) entry.getValue());
propertiesMap.put(entry.getKey(), String.valueOf(entry.getValue()));
}

return propertiesMap;
Expand Down

0 comments on commit b0a3dfc

Please sign in to comment.