|
|
|
@ -152,14 +152,6 @@ public class JsonJacksonCodec extends BaseCodec {
|
|
|
|
|
mapTyper.init(JsonTypeInfo.Id.CLASS, null);
|
|
|
|
|
mapTyper.inclusion(JsonTypeInfo.As.PROPERTY);
|
|
|
|
|
mapObjectMapper.setDefaultTyping(mapTyper);
|
|
|
|
|
|
|
|
|
|
// warm up codec
|
|
|
|
|
try {
|
|
|
|
|
byte[] s = mapObjectMapper.writeValueAsBytes(1);
|
|
|
|
|
mapObjectMapper.readValue(s, Object.class);
|
|
|
|
|
} catch (IOException e) {
|
|
|
|
|
throw new IllegalStateException(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected void init(ObjectMapper objectMapper) {
|
|
|
|
|