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 /src/main/java/ftbsc/lll/processor/tools | |
parent | c46106bebafeaf6d61a68577b6ebd65c00c836bf (diff) |
fix: repeatable annotation support fix
Diffstat (limited to 'src/main/java/ftbsc/lll/processor/tools')
-rw-r--r-- | src/main/java/ftbsc/lll/processor/tools/ASTUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
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()); } |