diff options
author | zaaarf <zaaarf@proton.me> | 2023-03-15 12:07:45 +0100 |
---|---|---|
committer | zaaarf <zaaarf@proton.me> | 2023-03-15 12:07:45 +0100 |
commit | 38dd9ae869eabd561559964ac70cfb1ca54d9892 (patch) | |
tree | 2f9f7b8b2130f6176b0b4b8e54acdbb2edde5202 | |
parent | c46106bebafeaf6d61a68577b6ebd65c00c836bf (diff) |
fix: repeatable annotation support fix
-rw-r--r-- | src/main/java/ftbsc/lll/processor/LilleroProcessor.java | 1 | ||||
-rw-r--r-- | src/main/java/ftbsc/lll/processor/tools/ASTUtils.java | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/ftbsc/lll/processor/LilleroProcessor.java b/src/main/java/ftbsc/lll/processor/LilleroProcessor.java index a2a42f2..a872e3c 100644 --- a/src/main/java/ftbsc/lll/processor/LilleroProcessor.java +++ b/src/main/java/ftbsc/lll/processor/LilleroProcessor.java @@ -23,7 +23,6 @@ import javax.tools.StandardLocation; import java.io.*; import java.net.URI; import java.net.URISyntaxException; -import java.net.URL; import java.nio.charset.StandardCharsets; import java.util.*; import java.util.stream.Collectors; diff --git a/src/main/java/ftbsc/lll/processor/tools/ASTUtils.java b/src/main/java/ftbsc/lll/processor/tools/ASTUtils.java index fb6806e..8361367 100644 --- a/src/main/java/ftbsc/lll/processor/tools/ASTUtils.java +++ b/src/main/java/ftbsc/lll/processor/tools/ASTUtils.java @@ -31,7 +31,7 @@ public class ASTUtils { public static List<ExecutableElement> findAnnotatedMethods(TypeElement cl, Class<? extends Annotation> ann) { return cl.getEnclosedElements() .stream() - .filter(e -> e.getAnnotation(ann) != null) + .filter(e -> e.getAnnotationsByType(ann).length != 0) .map(e -> (ExecutableElement) e) .collect(Collectors.toList()); } |