File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
src/test/java/com/fasterxml/jackson Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -249,13 +249,12 @@ public void testPropConfigOverridesForInclude() throws IOException
249249 ObjectMapper mapper ;
250250
251251 // and then change inclusion criteria for either
252-
253252 mapper = new ObjectMapper ();
254253 mapper .configOverride (Map .class )
255254 .setInclude (JsonInclude .Value .construct (JsonInclude .Include .NON_EMPTY , null ));
256255 assertEquals (aposToQuotes ("{'list':[]}" ),
257256 mapper .writeValueAsString (empty ));
258-
257+
259258 mapper = new ObjectMapper ();
260259 mapper .configOverride (List .class )
261260 .setInclude (JsonInclude .Value .construct (JsonInclude .Include .NON_EMPTY , null ));
Original file line number Diff line number Diff line change @@ -17,13 +17,12 @@ public class JsonInclude1327Test
1717{
1818 @ JsonInclude (JsonInclude .Include .NON_EMPTY )
1919 static class Issue1327BeanEmpty {
20- public String myString = "stuff" ;
2120 public List <String > myList = new ArrayList <String >();
2221 }
2322
2423 static class Issue1327BeanAlways {
2524 @ JsonInclude (JsonInclude .Include .ALWAYS )
26- public List <String > strings = new ArrayList <String >();
25+ public List <String > myList = new ArrayList <String >();
2726 }
2827
2928 /*
You can’t perform that action at this time.
0 commit comments