change Annotation#getClass to Annotation#annotationType because it was not working as expected

This commit is contained in:
tueem 2024-11-29 21:37:13 +01:00
parent 6eb7fb723f
commit 239e921e6f
Signed by: tueem
GPG Key ID: 65C8667EC17A88FB

@ -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));
}