@@ -1123,11 +1123,10 @@ public JavaType uncheckedSimpleType(Class<?> cls) {
1123
1123
/**
1124
1124
* Factory method for constructing {@link JavaType} that
1125
1125
* represents a parameterized type. For example, to represent
1126
- * type {@code List<Set<Integer> >}, you could
1126
+ * type {@code Foo<Bar, Baz >}, you could
1127
1127
* call
1128
1128
*<pre>
1129
- * JavaType inner = TypeFactory.constructParametricType(Set.class, Integer.class);
1130
- * return TypeFactory.constructParametricType(List.class, inner);
1129
+ * return typeFactory.constructParametricType(Foo.class, Bar.class, Baz.class);
1131
1130
*</pre>
1132
1131
*<p>
1133
1132
* NOTE: since 2.11.2 {@link TypeModifier}s ARE called on result (fix for [databind#2796])
@@ -1151,8 +1150,8 @@ public JavaType constructParametricType(Class<?> parametrized, Class<?>... param
1151
1150
* represents a parameterized type. For example, to represent
1152
1151
* type {@code List<Set<Integer>>}, you could
1153
1152
*<pre>
1154
- * JavaType inner = TypeFactory .constructParametricType(Set.class, Integer.class);
1155
- * return TypeFactory .constructParametricType(List.class, inner);
1153
+ * JavaType inner = typeFactory .constructParametricType(Set.class, Integer.class);
1154
+ * return typeFactory .constructParametricType(List.class, inner);
1156
1155
*</pre>
1157
1156
*<p>
1158
1157
* NOTE: since 2.11.2 {@link TypeModifier}s ARE called on result (fix for [databind#2796])
@@ -1174,7 +1173,7 @@ public JavaType constructParametricType(Class<?> rawType, JavaType... parameterT
1174
1173
* is useful if you already have the type's parameters such
1175
1174
* as those found on {@link JavaType}. For example, you could call
1176
1175
* <pre>
1177
- * return TypeFactory .constructParametricType(ArrayList.class, javaType.getBindings());
1176
+ * return typeFactory .constructParametricType(ArrayList.class, javaType.getBindings());
1178
1177
* </pre>
1179
1178
* This effectively applies the parameterized types from one
1180
1179
* {@link JavaType} to another class.
0 commit comments