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

Commit 6bbe151

Browse files
committed
Backport #80 into 2.7.9, 2.8.6
1 parent d679029 commit 6bbe151

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

release-notes/CREDITS

+4
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,7 @@ James Baker (j-baker@github)
4848
Jackson-annotated class itself deserialises a Jackson-annotated class
4949
(2.7.8)
5050

51+
Tanguy Leroux (tlrx@github)
52+
53+
- Reported, contributed test, fix for #80: Fix UTF8Writer when used in same thread
54+
(2.7.9)

release-notes/VERSION

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ Project: jackson-dataformat-yaml
88

99
No changes since 2.7
1010

11+
2.7.9 (not yet released)
12+
13+
#80: Fix UTF8Writer when used in same thread
14+
(contributed by Tanguy L)
15+
1116
2.7.8 (26-Sep-2016)
1217

1318
#70: `UTF8Reader` is unsafe if a Jackson-annotated class itself deserializes

src/main/java/com/fasterxml/jackson/dataformat/yaml/UTF8Writer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public UTF8Writer(OutputStream out)
4343
_bufferHolder = _findBufferHolder();
4444
byte[] buffer = _bufferHolder[0];
4545
if (buffer == null) {
46-
_bufferHolder[0] = buffer = new byte[DEFAULT_BUFFER_SIZE];
46+
buffer = new byte[DEFAULT_BUFFER_SIZE];
4747
} else {
4848
_bufferHolder[0] = null;
4949
}

0 commit comments

Comments
 (0)