File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed
src/test/java/com/fasterxml/jackson/databind/ser/filter Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -105,17 +105,10 @@ public DefaultIntBean(int i1, Integer i2) {
105105 }
106106 }
107107
108+ // [databind#4741]
108109 @ JsonInclude (JsonInclude .Include .NON_DEFAULT )
109110 static class NonDefaultBean4741 {
110- private String value = null ;
111-
112- public String getValue () {
113- return value ;
114- }
115-
116- public void setValue (String value ) {
117- this .value = value ;
118- }
111+ public String value = null ;
119112 }
120113
121114 static class NonEmptyString {
@@ -347,12 +340,12 @@ public void testIssue1351() throws Exception
347340 }
348341
349342 // [databind#4741]
343+ @ Test
350344 public void testSerialization4741 () throws Exception
351345 {
352- ObjectMapper mapper = new ObjectMapper ();
353346 NonDefaultBean4741 bean = new NonDefaultBean4741 ();
354- bean .setValue ( "" ) ;
355- assertEquals (a2q ("{'value':''}" ), mapper .writeValueAsString (bean ));
347+ bean .value = "" ;
348+ assertEquals (a2q ("{'value':''}" ), MAPPER .writeValueAsString (bean ));
356349 }
357350
358351 // [databind#1550]
You can’t perform that action at this time.
0 commit comments