Skip to content

Commit 649b9c7

Browse files
committed
Stop using deprecated Jackson methods
1 parent 10b485e commit 649b9c7

File tree

1 file changed

+1
-1
lines changed
  • java/src/test/java/io/cucumber/testngxmlformatter

1 file changed

+1
-1
lines changed

java/src/test/java/io/cucumber/testngxmlformatter/Jackson.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ final class Jackson {
1515
public static final ObjectMapper OBJECT_MAPPER = JsonMapper.builder()
1616
.addModule(new Jdk8Module())
1717
.addModule(new ParameterNamesModule(Mode.PROPERTIES))
18-
.serializationInclusion(Include.NON_ABSENT)
18+
.defaultPropertyInclusion(construct(NON_ABSENT, NON_ABSENT))
1919
.constructorDetector(ConstructorDetector.USE_PROPERTIES_BASED)
2020
.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING)
2121
.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING)

0 commit comments

Comments
 (0)