diff --git a/lib/src/main/java/net/tomatentum/marinara/parser/InteractionCheckParser.java b/lib/src/main/java/net/tomatentum/marinara/parser/InteractionCheckParser.java index 2722456..abba9e9 100644 --- a/lib/src/main/java/net/tomatentum/marinara/parser/InteractionCheckParser.java +++ b/lib/src/main/java/net/tomatentum/marinara/parser/InteractionCheckParser.java @@ -29,7 +29,7 @@ public class InteractionCheckParser implements AnnotationParser { } private void convertAnnotation(Annotation annotation) { - Optional> check = this.checkRegistry.getCheckFromAnnotation(annotation.getClass()); + Optional> check = this.checkRegistry.getCheckFromAnnotation(annotation.annotationType()); if (check.isPresent()) consumer.accept(new AppliedCheck(check.get(), annotation)); }