@@ -880,8 +880,7 @@ public MapType constructMapType(Class<? extends Map> mapClass,
880
880
/**
881
881
* Method for constructing a {@link MapType} instance
882
882
*<p>
883
- * NOTE: type modifiers are NOT called on constructed type itself; but are called
884
- * for contained types.
883
+ * NOTE: type modifiers are NOT called on constructed type itself.
885
884
*/
886
885
public MapType constructMapType (Class <? extends Map > mapClass , JavaType keyType , JavaType valueType ) {
887
886
TypeBindings bindings = TypeBindings .createIfNeeded (mapClass , new JavaType [] { keyType , valueType });
@@ -921,8 +920,7 @@ public MapLikeType constructMapLikeType(Class<?> mapClass, Class<?> keyClass, Cl
921
920
/**
922
921
* Method for constructing a {@link MapLikeType} instance
923
922
*<p>
924
- * NOTE: type modifiers are NOT called on constructed type itself; but are called
925
- * for contained types.
923
+ * NOTE: type modifiers are NOT called on constructed type itself.
926
924
*/
927
925
public MapLikeType constructMapLikeType (Class <?> mapClass , JavaType keyType , JavaType valueType ) {
928
926
// 19-Oct-2015, tatu: Allow case of no-type-variables, since it seems likely to be
@@ -938,7 +936,7 @@ public MapLikeType constructMapLikeType(Class<?> mapClass, JavaType keyType, Jav
938
936
/**
939
937
* Method for constructing a type instance with specified parameterization.
940
938
*<p>
941
- * NOTE: was briefly deprecated for 2.6 .
939
+ * NOTE: type modifiers are NOT called on constructed type itself .
942
940
*/
943
941
public JavaType constructSimpleType (Class <?> rawType , JavaType [] parameterTypes ) {
944
942
return _fromClass (null , rawType , TypeBindings .create (rawType , parameterTypes ));
@@ -959,6 +957,11 @@ public JavaType constructSimpleType(Class<?> rawType, Class<?> parameterTarget,
959
957
}
960
958
961
959
/**
960
+ * Method for constructing a {@link ReferenceType} instance with given type parameter
961
+ * (type MUST take one and only one type parameter)
962
+ *<p>
963
+ * NOTE: type modifiers are NOT called on constructed type itself.
964
+ *
962
965
* @since 2.6
963
966
*/
964
967
public JavaType constructReferenceType (Class <?> rawType , JavaType referredType )
@@ -1040,12 +1043,12 @@ public JavaType constructParametricType(Class<?> parametrized, Class<?>... param
1040
1043
* In most cases distinction does not matter, but there are types where it does;
1041
1044
* one such example is parameterization of types that implement {@link java.util.Iterator}.
1042
1045
*<p>
1043
- * NOTE: type modifiers are NOT called on constructed type.
1046
+ * NOTE: since 2.11.2 {@link TypeModifier}s ARE called on result (fix for [databind#2796])
1044
1047
*
1045
1048
* @param rawType Actual type-erased type
1046
1049
* @param parameterTypes Type parameters to apply
1047
1050
*
1048
- * @since 2.5 NOTE: was briefly deprecated for 2.6
1051
+ * @return Fully resolved type for given base type and type parameters
1049
1052
*/
1050
1053
public JavaType constructParametricType (Class <?> rawType , JavaType ... parameterTypes )
1051
1054
{
0 commit comments