Skip to content

Commit

Permalink
Reproduce static import issue with nested enum values (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek authored Jul 2, 2024
1 parent 0ac763f commit 2213f8e
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,25 +74,27 @@ 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);
}
}
""",
"""
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);
}
}
Expand Down

0 comments on commit 2213f8e

Please sign in to comment.