Skip to content

Commit

Permalink
Merge branch '2.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Sep 1, 2016
2 parents 1ca7576 + 1d930db commit ee10eec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion release-notes/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ Project: jackson-databind
#1277: Add caching of resolved generic types for `TypeFactory`
(requested by Andriy P)

2.7.7 (not yet released)
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
(reported by MichaelChambers@github)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,9 @@ protected final JsonNode _fromFloat(JsonParser p, DeserializationContext ctxt,
}
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 ee10eec

Please sign in to comment.