Construct json decoder from ObjectMapperProvider
A naked ObjectMapper doesn't have include modules like Java 8 (Optional, etc)
@@ -24,6 +24,7 @@ import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import io.airlift.json.ObjectMapperProvider;
import javax.annotation.concurrent.Immutable;
@@ -132,7 +133,7 @@ public class ClientTypeSignatureParameter
public static class ClientTypeSignatureParameterDeserializer
extends JsonDeserializer<ClientTypeSignatureParameter>
{
- private static final ObjectMapper MAPPER = new ObjectMapper();
+ private static final ObjectMapper MAPPER = new ObjectMapperProvider().get();
@Override
public ClientTypeSignatureParameter deserialize(JsonParser jp, DeserializationContext ctxt)
