Skip to content

Commit 55e8d23

Browse files
committed
...
1 parent 6ee24c3 commit 55e8d23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/com/fasterxml/jackson/failing/JacksonInject2465Test.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ public Internal2465(String val) {
3838
public void testInjectWithCreator() throws Exception
3939
{
4040
ObjectMapper mapper = jsonMapperBuilder()
41-
.defaultSetterInfo(JsonSetter.Value.construct(Nulls.AS_EMPTY, Nulls.AS_EMPTY))
41+
.changeDefaultNullHandling(h -> JsonSetter.Value.construct(Nulls.AS_EMPTY, Nulls.AS_EMPTY))
42+
.changeDefaultVisibility(h -> h.withVisibility(PropertyAccessor.FIELD,
43+
JsonAutoDetect.Visibility.ANY))
4244
.build();
43-
mapper.setVisibility(mapper.getVisibilityChecker().withVisibility(PropertyAccessor.FIELD,
44-
JsonAutoDetect.Visibility.ANY));
4545

4646
final Internal2465 injected = new Internal2465("test");
4747
TestCase2465 o = mapper.readerFor(TestCase2465.class)

0 commit comments

Comments
 (0)