change Annotation#getClass to Annotation#annotationType because it was not working as expected
This commit is contained in:
parent
6eb7fb723f
commit
239e921e6f
@ -29,7 +29,7 @@ public class InteractionCheckParser implements AnnotationParser {
|
||||
}
|
||||
|
||||
private void convertAnnotation(Annotation annotation) {
|
||||
Optional<InteractionCheck<?>> check = this.checkRegistry.getCheckFromAnnotation(annotation.getClass());
|
||||
Optional<InteractionCheck<?>> check = this.checkRegistry.getCheckFromAnnotation(annotation.annotationType());
|
||||
if (check.isPresent())
|
||||
consumer.accept(new AppliedCheck(check.get(), annotation));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user