|
57 | 57 | import com.fasterxml.jackson.databind.SerializerProvider;
|
58 | 58 | import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
59 | 59 | import com.fasterxml.jackson.databind.cfg.DeserializerFactoryConfig;
|
60 |
| -import com.fasterxml.jackson.databind.cfg.EnumFeature; |
61 |
| -import com.fasterxml.jackson.databind.cfg.JsonNodeFeature; |
62 | 60 | import com.fasterxml.jackson.databind.cfg.SerializerFactoryConfig;
|
63 | 61 | import com.fasterxml.jackson.databind.deser.BasicDeserializerFactory;
|
64 | 62 | import com.fasterxml.jackson.databind.deser.Deserializers;
|
@@ -457,12 +455,10 @@ void completeSetup() throws JsonMappingException {
|
457 | 455 | .annotationIntrospector(current -> AnnotationIntrospector.pair(current, introspector))
|
458 | 456 | .featuresToEnable(SerializationFeature.FAIL_ON_EMPTY_BEANS,
|
459 | 457 | DeserializationFeature.UNWRAP_ROOT_VALUE,
|
460 |
| - EnumFeature.BOGUS_FEATURE, |
461 | 458 | JsonParser.Feature.ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER,
|
462 | 459 | JsonGenerator.Feature.WRITE_NUMBERS_AS_STRINGS)
|
463 | 460 | .featuresToDisable(MapperFeature.AUTO_DETECT_GETTERS,
|
464 | 461 | MapperFeature.AUTO_DETECT_FIELDS,
|
465 |
| - JsonNodeFeature.READ_NULL_PROPERTIES, |
466 | 462 | JsonParser.Feature.AUTO_CLOSE_SOURCE,
|
467 | 463 | JsonGenerator.Feature.QUOTE_FIELD_NAMES)
|
468 | 464 | .serializationInclusion(JsonInclude.Include.NON_NULL);
|
@@ -491,15 +487,13 @@ void completeSetup() throws JsonMappingException {
|
491 | 487 |
|
492 | 488 | assertThat(mapper.getSerializationConfig().isEnabled(SerializationFeature.FAIL_ON_EMPTY_BEANS)).isTrue();
|
493 | 489 | assertThat(mapper.getDeserializationConfig().isEnabled(DeserializationFeature.UNWRAP_ROOT_VALUE)).isTrue();
|
494 |
| - assertThat(mapper.getSerializationConfig().isEnabled(EnumFeature.BOGUS_FEATURE)).isTrue(); |
495 | 490 | assertThat(mapper.getFactory().isEnabled(JsonParser.Feature.ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER)).isTrue();
|
496 | 491 | assertThat(mapper.getFactory().isEnabled(JsonGenerator.Feature.WRITE_NUMBERS_AS_STRINGS)).isTrue();
|
497 | 492 |
|
498 | 493 | assertThat(mapper.getSerializationConfig().isEnabled(MapperFeature.AUTO_DETECT_GETTERS)).isFalse();
|
499 | 494 | assertThat(mapper.getDeserializationConfig().isEnabled(MapperFeature.DEFAULT_VIEW_INCLUSION)).isFalse();
|
500 | 495 | assertThat(mapper.getDeserializationConfig().isEnabled(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)).isFalse();
|
501 | 496 | assertThat(mapper.getDeserializationConfig().isEnabled(MapperFeature.AUTO_DETECT_FIELDS)).isFalse();
|
502 |
| - assertThat(mapper.getDeserializationConfig().isEnabled(JsonNodeFeature.READ_NULL_PROPERTIES)).isFalse(); |
503 | 497 | assertThat(mapper.getFactory().isEnabled(JsonParser.Feature.AUTO_CLOSE_SOURCE)).isFalse();
|
504 | 498 | assertThat(mapper.getFactory().isEnabled(JsonGenerator.Feature.QUOTE_FIELD_NAMES)).isFalse();
|
505 | 499 | assertThat(mapper.getSerializationConfig().getSerializationInclusion()).isSameAs(JsonInclude.Include.NON_NULL);
|
|
0 commit comments