File tree 2 files changed +2
-4
lines changed
src/test/java/com/fasterxml/jackson
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
249
249
ObjectMapper mapper ;
250
250
251
251
// and then change inclusion criteria for either
252
-
253
252
mapper = new ObjectMapper ();
254
253
mapper .configOverride (Map .class )
255
254
.setInclude (JsonInclude .Value .construct (JsonInclude .Include .NON_EMPTY , null ));
256
255
assertEquals (aposToQuotes ("{'list':[]}" ),
257
256
mapper .writeValueAsString (empty ));
258
-
257
+
259
258
mapper = new ObjectMapper ();
260
259
mapper .configOverride (List .class )
261
260
.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
17
17
{
18
18
@ JsonInclude (JsonInclude .Include .NON_EMPTY )
19
19
static class Issue1327BeanEmpty {
20
- public String myString = "stuff" ;
21
20
public List <String > myList = new ArrayList <String >();
22
21
}
23
22
24
23
static class Issue1327BeanAlways {
25
24
@ JsonInclude (JsonInclude .Include .ALWAYS )
26
- public List <String > strings = new ArrayList <String >();
25
+ public List <String > myList = new ArrayList <String >();
27
26
}
28
27
29
28
/*
You can’t perform that action at this time.
0 commit comments