From 239e921e6f41c35ac15afad5d6cb35d6f896bd74 Mon Sep 17 00:00:00 2001 From: tueem Date: Fri, 29 Nov 2024 21:37:13 +0100 Subject: [PATCH] change Annotation#getClass to Annotation#annotationType because it was not working as expected --- .../net/tomatentum/marinara/parser/InteractionCheckParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }