Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Javadoc example for constructParametricType(Class<?>, Class<?>...) #4969

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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<Set<Integer>>}, you could
* type {@code Foo<Bar, Baz>}, you could
* call
*<pre>
* JavaType inner = TypeFactory.constructParametricType(Set.class, Integer.class);
* return TypeFactory.constructParametricType(List.class, inner);
* return typeFactory.constructParametricType(Foo.class, Bar.class, Baz.class);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed casing just so it doesn't look like we have a static method.

*</pre>
*<p>
* NOTE: since 2.11.2 {@link TypeModifier}s ARE called on result (fix for [databind#2796])
Expand All @@ -1151,8 +1150,8 @@ public JavaType constructParametricType(Class<?> parametrized, Class<?>... param
* represents a parameterized type. For example, to represent
* type {@code List<Set<Integer>>}, you could
*<pre>
* 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);
*</pre>
*<p>
* NOTE: since 2.11.2 {@link TypeModifier}s ARE called on result (fix for [databind#2796])
Expand All @@ -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
* <pre>
* return TypeFactory.constructParametricType(ArrayList.class, javaType.getBindings());
* return typeFactory.constructParametricType(ArrayList.class, javaType.getBindings());
* </pre>
* This effectively applies the parameterized types from one
* {@link JavaType} to another class.
Expand Down