summaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/processor
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-03-15 12:07:45 +0100
committer zaaarf <zaaarf@proton.me>2023-03-15 12:07:45 +0100
commit38dd9ae869eabd561559964ac70cfb1ca54d9892 (patch)
tree2f9f7b8b2130f6176b0b4b8e54acdbb2edde5202 /src/main/java/ftbsc/lll/processor
parentc46106bebafeaf6d61a68577b6ebd65c00c836bf (diff)
fix: repeatable annotation support fix
Diffstat (limited to 'src/main/java/ftbsc/lll/processor')
-rw-r--r--src/main/java/ftbsc/lll/processor/LilleroProcessor.java1
-rw-r--r--src/main/java/ftbsc/lll/processor/tools/ASTUtils.java2
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());
}