Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Oct 31, 2014
1 parent 23328aa commit edf8674
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ javax.xml.datatype, javax.xml.namespace, javax.xml.parsers
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.4.3</version>
<version>2.4.4-SNAPSHOT</version>
</dependency>

<!-- and for testing we need a few libraries
Expand Down
1 change: 1 addition & 0 deletions release-notes/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Project: jackson-databind
(reported by Jerbell@github)
#592: Wrong `TokenBuffer` delegate deserialization using `@JsonCreator`
(reported by Eugene L)
- Minor fix to `EnumSerializer` regarding detection "serialize using index"

2.4.3 (02-Oct-2014)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ public JsonNode getSchema(SerializerProvider provider, Type typeHint)

@Override
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
throws JsonMappingException
throws JsonMappingException
{
// [JACKSON-684]: serialize as index?
if (visitor.getProvider().isEnabled(SerializationFeature.WRITE_ENUMS_USING_INDEX)) {
if (_serializeAsIndex(visitor.getProvider())) {
JsonIntegerFormatVisitor v2 = visitor.expectIntegerFormat(typeHint);
if (v2 != null) { // typically serialized as a small number (byte or int)
v2.numberType(JsonParser.NumberType.INT);
Expand Down

0 comments on commit edf8674

Please sign in to comment.