1
1
package com .fasterxml .jackson .dataformat .xml .deser ;
2
2
3
+ import java .util .List ;
4
+ import java .util .Map ;
5
+
3
6
import com .fasterxml .jackson .annotation .JsonSetter ;
4
7
import com .fasterxml .jackson .annotation .Nulls ;
5
8
import com .fasterxml .jackson .core .type .TypeReference ;
@@ -83,7 +86,6 @@ public void testNullsToGenericPojo() throws Exception
83
86
84
87
// 04-May-2018, tatu: In theory could be supportable, but wrapping (or not)
85
88
// of Collections, other requirements, make it... not that easy.
86
- /*
87
89
public void testNullsToEmptyCollection () throws Exception
88
90
{
89
91
GeneralEmpty <List <String >> result = MAPPER .readValue (EMPTY_XML ,
@@ -97,18 +99,15 @@ public void testNullsToEmptyCollection() throws Exception
97
99
assertNotNull (result2 .value );
98
100
assertEquals (0 , result2 .value .size ());
99
101
}
100
- */
101
102
102
103
// 04-May-2018, tatu: Maps and XML do not mix well, alas:
103
- /*
104
104
public void testNullsToEmptyMap () throws Exception
105
105
{
106
106
GeneralEmpty <Map <String ,String >> result = MAPPER .readValue (EMPTY_XML ,
107
107
new TypeReference <GeneralEmpty <Map <String ,String >>>() { });
108
108
assertNotNull (result .value );
109
109
assertEquals (0 , result .value .size ());
110
110
}
111
- */
112
111
113
112
public void testNullsToEmptyArrays () throws Exception
114
113
{
0 commit comments