Polishing

This commit is contained in:
Juergen Hoeller
2020-03-13 23:49:03 +01:00
parent 1a81aed1eb
commit 528fc662f0
3 changed files with 7 additions and 6 deletions

View File

@@ -67,7 +67,7 @@ public abstract class AbstractJackson2Encoder extends Jackson2CodecSupport imple
private static final Map<MediaType, byte[]> STREAM_SEPARATORS;
static {
STREAM_SEPARATORS = new HashMap<>();
STREAM_SEPARATORS = new HashMap<>(4);
STREAM_SEPARATORS.put(MediaType.APPLICATION_STREAM_JSON, NEWLINE_SEPARATOR);
STREAM_SEPARATORS.put(MediaType.parseMediaType("application/stream+x-jackson-smile"), new byte[0]);
}