From 480e0ac2f4cb73763eac08edf75fb62c6841060b Mon Sep 17 00:00:00 2001 From: Nathaniel Bauernfeind Date: Mon, 15 Feb 2016 16:55:03 -0500 Subject: [PATCH] When applying type modifiers, don't ignore container types. --- .../com/fasterxml/jackson/databind/type/TypeFactory.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/fasterxml/jackson/databind/type/TypeFactory.java b/src/main/java/com/fasterxml/jackson/databind/type/TypeFactory.java index bedf749dbd..c1f0ba3b50 100644 --- a/src/main/java/com/fasterxml/jackson/databind/type/TypeFactory.java +++ b/src/main/java/com/fasterxml/jackson/databind/type/TypeFactory.java @@ -1112,11 +1112,8 @@ else if (type instanceof WildcardType) { // sanity check throw new IllegalArgumentException("Unrecognized Type: "+((type == null) ? "[null]" : type.toString())); } - /* Need to allow TypeModifiers to alter actual type; however, - * for now only call for simple types (i.e. not for arrays, map or collections). - * Can be changed in future it necessary - */ - if (_modifiers != null && !resultType.isContainerType()) { + /* Need to allow TypeModifiers to alter actual type. */ + if (_modifiers != null) { TypeBindings b = resultType.getBindings(); if (b == null) { b = EMPTY_BINDINGS;