Skip to content

Commit 6747b94

Browse files
committed
use new newJsonMapper style for creating ObjectMapper
1 parent 50e3b23 commit 6747b94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/java/tools/jackson/databind/jsontype/SealedTypesWithSubtypesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public POJOWrapper(Sub sub1, Sub sub2) {
183183
/**********************************************************************
184184
*/
185185

186-
private final ObjectMapper MAPPER = new ObjectMapper();
186+
private final ObjectMapper MAPPER = newJsonMapper();
187187

188188
@Test
189189
public void testPropertyWithSubtypes() throws Exception

src/test/java/tools/jackson/databind/jsontype/SealedTypesWithTypedSerializationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public class B extends Super {}
8484
/**********************************************************
8585
*/
8686

87-
private final ObjectMapper MAPPER = new ObjectMapper();
87+
private final ObjectMapper MAPPER = newJsonMapper();
8888

8989
/**
9090
* First things first, let's ensure we can serialize using

0 commit comments

Comments
 (0)