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

TypeHints#resolve(..) should not use varargs #298

Closed
JarvisCraft opened this issue Dec 6, 2021 · 0 comments
Closed

TypeHints#resolve(..) should not use varargs #298

JarvisCraft opened this issue Dec 6, 2021 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@JarvisCraft
Copy link
Owner

Description

While callers are expetected to use vararg parameters in order to resolve types, TypeHints#resolve(..) should only be called with an already formed array, thus it should not consume vararg parameters.

References

public <T> @NotNull Class<T> resolve(final @Nullable T... typeHint) {

Reporters

This issue was reported by @AbstractCoderX

@JarvisCraft JarvisCraft added the bug Something isn't working label Dec 6, 2021
@JarvisCraft JarvisCraft added this to the 1.0.0 milestone Dec 6, 2021
@JarvisCraft JarvisCraft self-assigned this Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant