Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
Backport #80 into 2.7.9, 2.8.6
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 10, 2017
1 parent d679029 commit 6bbe151
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions release-notes/CREDITS
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,7 @@ James Baker (j-baker@github)
Jackson-annotated class itself deserialises a Jackson-annotated class
(2.7.8)

Tanguy Leroux (tlrx@github)

- Reported, contributed test, fix for #80: Fix UTF8Writer when used in same thread
(2.7.9)
5 changes: 5 additions & 0 deletions release-notes/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ Project: jackson-dataformat-yaml

No changes since 2.7

2.7.9 (not yet released)

#80: Fix UTF8Writer when used in same thread
(contributed by Tanguy L)

2.7.8 (26-Sep-2016)

#70: `UTF8Reader` is unsafe if a Jackson-annotated class itself deserializes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public UTF8Writer(OutputStream out)
_bufferHolder = _findBufferHolder();
byte[] buffer = _bufferHolder[0];
if (buffer == null) {
_bufferHolder[0] = buffer = new byte[DEFAULT_BUFFER_SIZE];
buffer = new byte[DEFAULT_BUFFER_SIZE];
} else {
_bufferHolder[0] = null;
}
Expand Down

0 comments on commit 6bbe151

Please sign in to comment.