Fix handling of number fields Yaml 56/105856/1
authorJim Hahn <jrh3@att.com>
Mon, 13 Apr 2020 17:03:08 +0000 (13:03 -0400)
committerJim Hahn <jrh3@att.com>
Mon, 13 Apr 2020 18:25:51 +0000 (14:25 -0400)
commitc0f026f3a76aae967101755978e03770182efff1
tree7191c5438caa0d3e3f940266b7654598dffba5d0
parent784c32b3f2bcc26a0af719cb7f5e7ac75ebf9641
Fix handling of number fields Yaml

This fix also impacts StandardCoder, allowing Map.class to be used
as the target type instead of requiring LinkedHashMap.class.

Note: still doesn't do any translation if Object.class is used, as
there is no way to override GSON's handler for the Object type.

Issue-ID: POLICY-2488
Change-Id: Ia7cd0c85dc5a2a9e93360fa1c8397531b8503f2d
Signed-off-by: Jim Hahn <jrh3@att.com>
gson/src/main/java/org/onap/policy/common/gson/MapDoubleAdapterFactory.java