Skip to content

Commit 29bfc3b

Browse files
committed
Merge pull request #1129 from nbauernfeind/jackson-module-scala
When applying type modifiers, don't ignore container types.
2 parents 31a84e2 + 480e0ac commit 29bfc3b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/main/java/com/fasterxml/jackson/databind/type/TypeFactory.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,11 +1112,8 @@ else if (type instanceof WildcardType) {
11121112
// sanity check
11131113
throw new IllegalArgumentException("Unrecognized Type: "+((type == null) ? "[null]" : type.toString()));
11141114
}
1115-
/* Need to allow TypeModifiers to alter actual type; however,
1116-
* for now only call for simple types (i.e. not for arrays, map or collections).
1117-
* Can be changed in future it necessary
1118-
*/
1119-
if (_modifiers != null && !resultType.isContainerType()) {
1115+
/* Need to allow TypeModifiers to alter actual type. */
1116+
if (_modifiers != null) {
11201117
TypeBindings b = resultType.getBindings();
11211118
if (b == null) {
11221119
b = EMPTY_BINDINGS;

0 commit comments

Comments
 (0)