Skip to content

Commit

Permalink
Fix #1359
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Sep 1, 2016
1 parent c49891b commit 1d930db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions release-notes/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Project: jackson-databind
=== Releases ===
------------------------------------------------------------------------

2.7.8 (not yet released)

#1359: Improve `JsonNode` deserializer to create `FloatNode` if parser supports

2.7.7 (27-Aug-2016)

#1322: EnumMap keys not using enum's `@JsonProperty` values unlike Enum values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@ protected final JsonNode _fromFloat(JsonParser p, DeserializationContext ctxt,
|| ctxt.isEnabled(DeserializationFeature.USE_BIG_DECIMAL_FOR_FLOATS)) {
return nodeFactory.numberNode(p.getDecimalValue());
}
if (nt == JsonParser.NumberType.FLOAT) {
return nodeFactory.numberNode(p.getFloatValue());
}
return nodeFactory.numberNode(p.getDoubleValue());
}

Expand Down

0 comments on commit 1d930db

Please sign in to comment.