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 May 27, 2016
2 parents 4b95df1 + 8daddc0 commit e98a273
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions release-notes/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Project: jackson-databind
(reported by Mark W)
#1248: `Annotated` returns raw type in place of Generic Type in 2.7.x
(reported by Andrew J, apjoseph@github)
#1253: Problem with context handling for `TokenBuffer`, field name

2.7.4 (29-Apr-2016)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,7 @@ public void close() throws IOException {
@Override
public final void writeStartArray() throws IOException
{
_writeContext.writeValue();
_append(JsonToken.START_ARRAY);
_writeContext = _writeContext.createChildArrayContext();
}
Expand All @@ -641,6 +642,7 @@ public final void writeEndArray() throws IOException
@Override
public final void writeStartObject() throws IOException
{
_writeContext.writeValue();
_append(JsonToken.START_OBJECT);
_writeContext = _writeContext.createChildObjectContext();
}
Expand Down Expand Up @@ -670,15 +672,15 @@ public final void writeEndObject() throws IOException
@Override
public final void writeFieldName(String name) throws IOException
{
_append(JsonToken.FIELD_NAME, name);
_writeContext.writeFieldName(name);
_append(JsonToken.FIELD_NAME, name);
}

@Override
public void writeFieldName(SerializableString name) throws IOException
{
_append(JsonToken.FIELD_NAME, name);
_writeContext.writeFieldName(name.getValue());
_append(JsonToken.FIELD_NAME, name);
}

/*
Expand Down

0 comments on commit e98a273

Please sign in to comment.