Skip to content

Commit ece6210

Browse files
committed
Minor javadoc fixes
1 parent 94b7cba commit ece6210

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

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

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -880,8 +880,7 @@ public MapType constructMapType(Class<? extends Map> mapClass,
880880
/**
881881
* Method for constructing a {@link MapType} instance
882882
*<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.
885884
*/
886885
public MapType constructMapType(Class<? extends Map> mapClass, JavaType keyType, JavaType valueType) {
887886
TypeBindings bindings = TypeBindings.createIfNeeded(mapClass, new JavaType[] { keyType, valueType });
@@ -921,8 +920,7 @@ public MapLikeType constructMapLikeType(Class<?> mapClass, Class<?> keyClass, Cl
921920
/**
922921
* Method for constructing a {@link MapLikeType} instance
923922
*<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.
926924
*/
927925
public MapLikeType constructMapLikeType(Class<?> mapClass, JavaType keyType, JavaType valueType) {
928926
// 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
938936
/**
939937
* Method for constructing a type instance with specified parameterization.
940938
*<p>
941-
* NOTE: was briefly deprecated for 2.6.
939+
* NOTE: type modifiers are NOT called on constructed type itself.
942940
*/
943941
public JavaType constructSimpleType(Class<?> rawType, JavaType[] parameterTypes) {
944942
return _fromClass(null, rawType, TypeBindings.create(rawType, parameterTypes));
@@ -959,6 +957,11 @@ public JavaType constructSimpleType(Class<?> rawType, Class<?> parameterTarget,
959957
}
960958

961959
/**
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+
*
962965
* @since 2.6
963966
*/
964967
public JavaType constructReferenceType(Class<?> rawType, JavaType referredType)
@@ -1040,12 +1043,12 @@ public JavaType constructParametricType(Class<?> parametrized, Class<?>... param
10401043
* In most cases distinction does not matter, but there are types where it does;
10411044
* one such example is parameterization of types that implement {@link java.util.Iterator}.
10421045
*<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])
10441047
*
10451048
* @param rawType Actual type-erased type
10461049
* @param parameterTypes Type parameters to apply
10471050
*
1048-
* @since 2.5 NOTE: was briefly deprecated for 2.6
1051+
* @return Fully resolved type for given base type and type parameters
10491052
*/
10501053
public JavaType constructParametricType(Class<?> rawType, JavaType... parameterTypes)
10511054
{

0 commit comments

Comments
 (0)