Skip to content

Error in documentationof TypeFacorty::constructParametricType #2886

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

Closed
axthosarouris opened this issue Oct 14, 2020 · 1 comment
Closed

Error in documentationof TypeFacorty::constructParametricType #2886

axthosarouris opened this issue Oct 14, 2020 · 1 comment
Labels
documentation Documentation-related task hacktoberfest-accepted Tag for issues, PRs that are explicitly marked as accepted for Hacktoberfest

Comments

@axthosarouris
Copy link

Which part of documentation is missing, incorrect or out of date? Please describe.
You may suggest changes, deletions, additions.

The present documentation contains the following:

 *<pre>
     *  JavaType inner = TypeFactory.constructParametricType(Set.class, Set.class, Integer.class);
     *  return TypeFactory.constructParametricType(ArrayList.class, List.class, inner);
     *</pre>

but there is no method constructParametricType(Class<?>,Class<?>, JavaType). There is only the deprecated constructParametrizedType with this parameter list

Suggested correction:

TypeFactory.constructParametricType( List.class, inner);
@axthosarouris axthosarouris added the to-evaluate Issue that has been received but not yet evaluated label Oct 14, 2020
@cowtowncoder cowtowncoder added documentation Documentation-related task hacktoberfest-accepted Tag for issues, PRs that are explicitly marked as accepted for Hacktoberfest and removed to-evaluate Issue that has been received but not yet evaluated labels Oct 14, 2020
cowtowncoder added a commit that referenced this issue Oct 14, 2020
@cowtowncoder
Copy link
Member

Thank you for the suggestion! Will go ahead, make suggested changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation-related task hacktoberfest-accepted Tag for issues, PRs that are explicitly marked as accepted for Hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants