Skip to content

Add getTypeAnnotationInfo to TypeParameter and TypeArgument#742

Merged
lukehutch merged 1 commit into
classgraph:latestfrom
platosha:feature/missing-annotation-api
Dec 21, 2022
Merged

Add getTypeAnnotationInfo to TypeParameter and TypeArgument#742
lukehutch merged 1 commit into
classgraph:latestfrom
platosha:feature/missing-annotation-api

Conversation

@platosha

Copy link
Copy Markdown
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
Copy Markdown
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

3 participants