File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/test/java/com/fasterxml/jackson/failing Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,10 @@ public Internal2465(String val) {
38
38
public void testInjectWithCreator () throws Exception
39
39
{
40
40
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 ))
42
44
.build ();
43
- mapper .setVisibility (mapper .getVisibilityChecker ().withVisibility (PropertyAccessor .FIELD ,
44
- JsonAutoDetect .Visibility .ANY ));
45
45
46
46
final Internal2465 injected = new Internal2465 ("test" );
47
47
TestCase2465 o = mapper .readerFor (TestCase2465 .class )
You can’t perform that action at this time.
0 commit comments