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 fe97a64e09..f05ec87079 100644 --- a/src/main/java/com/fasterxml/jackson/databind/type/TypeFactory.java +++ b/src/main/java/com/fasterxml/jackson/databind/type/TypeFactory.java @@ -1123,11 +1123,10 @@ public JavaType uncheckedSimpleType(Class cls) { /** * Factory method for constructing {@link JavaType} that * represents a parameterized type. For example, to represent - * type {@code List>}, you could + * type {@code Foo}, you could * call *
-     *  JavaType inner = TypeFactory.constructParametricType(Set.class, Integer.class);
-     *  return TypeFactory.constructParametricType(List.class, inner);
+     *  return typeFactory.constructParametricType(Foo.class, Bar.class, Baz.class);
      *
*

* 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 * represents a parameterized type. For example, to represent * type {@code List>}, you could *

-     *  JavaType inner = TypeFactory.constructParametricType(Set.class, Integer.class);
-     *  return TypeFactory.constructParametricType(List.class, inner);
+     *  JavaType inner = typeFactory.constructParametricType(Set.class, Integer.class);
+     *  return typeFactory.constructParametricType(List.class, inner);
      *
*

* 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 * is useful if you already have the type's parameters such * as those found on {@link JavaType}. For example, you could call *

-     *   return TypeFactory.constructParametricType(ArrayList.class, javaType.getBindings());
+     *   return typeFactory.constructParametricType(ArrayList.class, javaType.getBindings());
      * 
* This effectively applies the parameterized types from one * {@link JavaType} to another class.