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

Add getTypeAnnotationInfo to TypeParameter and TypeArgument #742

Merged

Conversation

platosha
Copy link
Contributor

Fixes #741

Exposes missing API for accessing parsed annotations on type parameters and wildcard type arguments.

Fixes classgraph#741

Exposes missing API for accessing parsed annotations on type parameters
and wildcard type arguments.
@lukehutch lukehutch merged commit f36aa2b into classgraph:latest Dec 21, 2022
@lukehutch
Copy link
Member

@platosha thank you so much for the contribution, including the unit test!

static class U {
}

void setValueList(List<@A @B("foo") @C(t=U.class) @D(n=50) ?> valueList) {

Check notice

Code scanning / CodeQL

Useless parameter

The parameter 'valueList' is never used.
static class U {
}

<@A @B("foo") @C(t=U.class) @D(n=50) T> void setValue(T value) {

Check notice

Code scanning / CodeQL

Useless parameter

The parameter 'value' is never used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing API access for annotations on type parameters and wildcard type arguments
2 participants