diff --git a/java/src/main/java/com/cloudera/api/ApiObjectMapper.java b/java/src/main/java/com/cloudera/api/ApiObjectMapper.java index 5e55b2c9..747be861 100644 --- a/java/src/main/java/com/cloudera/api/ApiObjectMapper.java +++ b/java/src/main/java/com/cloudera/api/ApiObjectMapper.java @@ -16,10 +16,10 @@ package com.cloudera.api; -import com.fasterxml.jackson.databind.AnnotationIntrospector; import com.fasterxml.jackson.databind.MapperFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; +import com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair; import com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector; import java.text.DateFormat; @@ -38,7 +38,7 @@ public ApiObjectMapper() { // Allow JAX-B annotations. setAnnotationIntrospector( - new AnnotationIntrospector.Pair( + new AnnotationIntrospectorPair( getSerializationConfig().getAnnotationIntrospector(), new JaxbAnnotationIntrospector()));