Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Excutable with factory method is not detected if argument value has unresolved generics #1527

Closed
snicoll opened this issue Mar 8, 2022 · 0 comments
Assignees
Labels
type: bug A general bug
Milestone

Comments

@snicoll
Copy link
Contributor

snicoll commented Mar 8, 2022

Consider the following factory method:

static MyObject forAnnotation(Class<? extends Annotation> annotationType)

If a constructor argument is provided as a value, its generic doesn't contain the fact it is an annotation class and we currently flag any such method as a mismatch.

@snicoll snicoll added the type: bug A general bug label Mar 8, 2022
@snicoll snicoll added this to the 0.11.4 milestone Mar 8, 2022
@snicoll snicoll self-assigned this Mar 8, 2022
@snicoll snicoll closed this as completed in 1517103 Mar 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A general bug
Development

No branches or pull requests

1 participant