diff --git a/src/test/java/org/openrewrite/java/jackson/codehaus/CodehausToFasterXMLTest.java b/src/test/java/org/openrewrite/java/jackson/codehaus/CodehausToFasterXMLTest.java index fc28ba8..2d7ae1f 100644 --- a/src/test/java/org/openrewrite/java/jackson/codehaus/CodehausToFasterXMLTest.java +++ b/src/test/java/org/openrewrite/java/jackson/codehaus/CodehausToFasterXMLTest.java @@ -74,12 +74,13 @@ void serializationConfigEnums() { """ import org.codehaus.jackson.map.DeserializationConfig; import org.codehaus.jackson.map.ObjectMapper; - import org.codehaus.jackson.map.SerializationConfig; + import static org.codehaus.jackson.map.SerializationConfig.Feature.WRAP_ROOT_VALUE; + class Test { void foo(){ ObjectMapper mapper = new ObjectMapper(); - mapper.configure(SerializationConfig.Feature.WRAP_ROOT_VALUE, true); + mapper.configure(WRAP_ROOT_VALUE, true); mapper.configure(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, false); } } @@ -87,12 +88,13 @@ void foo(){ """ import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; - import com.fasterxml.jackson.databind.SerializationFeature; + + import static com.fasterxml.jackson.databind.SerializationFeature.WRAP_ROOT_VALUE; class Test { void foo(){ ObjectMapper mapper = new ObjectMapper(); - mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, true); + mapper.configure(WRAP_ROOT_VALUE, true); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); } }