File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/main/java/com/fasterxml/jackson/dataformat/xml/util Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ Project: jackson-dataformat-xml
6
6
7
7
2.9.0 (not yet released)
8
8
9
+ 2.8.7 (not yet released)
10
+
11
+ #220: Avoid root-level wrapping for Map-like types, not just Maps
12
+
9
13
2.8.6 (12-Jan-2017)
10
14
2.8.5 (14-Nov-2016)
11
15
Original file line number Diff line number Diff line change 1
1
package com .fasterxml .jackson .dataformat .xml .util ;
2
2
3
3
import java .util .Collection ;
4
- import java .util .Map ;
5
4
6
5
import com .fasterxml .jackson .databind .JavaType ;
7
6
@@ -20,8 +19,9 @@ public static boolean isIndexedType(JavaType type)
20
19
if (cls == byte [].class || cls == char [].class ) {
21
20
return false ;
22
21
}
23
- // issue#5: also, should not add wrapping for Maps
24
- if (Map .class .isAssignableFrom (cls )) {
22
+ // Also, should not add wrapping for Maps
23
+ // [dataformat-xml#220]: nor map-like (Scala Map) types
24
+ if (type .isMapLikeType ()) {
25
25
return false ;
26
26
}
27
27
return true ;
You can’t perform that action at this time.
0 commit comments