Commit 3b5d8b4
authored
fix: set gson's objectToNumber policy to DOUBLE (#155)
When the java core was recently upgraded to gson version 2.8.9,
that included a change to set gson's "objectToNumber"
policy to be "LAZILY_PARSED_NUMBER", but that was incorrect.
It should be set to "DOUBLE".
This commit makes this change, which means that if a JSON string
is unmarshalled into a generic Map<String, Object>, then any
JSON "number" values that are encountered will now be unmarshalled
into a Double instead of a LazilyParsedNumber.
This change restores the behavior seen in gson versions prior to
2.8.9 (and java core versions prior to 9.13.4).1 parent 45498ae commit 3b5d8b4
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments