summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-03-15 12:25:59 +0100
committer zaaarf <zaaarf@proton.me>2023-03-15 12:25:59 +0100
commit8fd7006a346e562ed11bdb3c0cfebba3197ff860 (patch)
tree4aa95985d68b86c7031343e67b624e3bee1929f2 /src/main/java
parent38dd9ae869eabd561559964ac70cfb1ca54d9892 (diff)
fix: repeatable annotation support fix, part 2
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/ftbsc/lll/processor/LilleroProcessor.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/ftbsc/lll/processor/LilleroProcessor.java b/src/main/java/ftbsc/lll/processor/LilleroProcessor.java
index a872e3c..f6ef045 100644
--- a/src/main/java/ftbsc/lll/processor/LilleroProcessor.java
+++ b/src/main/java/ftbsc/lll/processor/LilleroProcessor.java
@@ -360,7 +360,7 @@ public class LilleroProcessor extends AbstractProcessor {
String packageName = packageElement.toString();
//find injector(s) and target(s)
- List<ExecutableElement> injectors = findAnnotatedMethods(cl, MultipleInjectors.class);
+ List<ExecutableElement> injectors = findAnnotatedMethods(cl, Injector.class);
List<ExecutableElement> targets = findAnnotatedMethods(cl, Target.class);
@@ -375,9 +375,9 @@ public class LilleroProcessor extends AbstractProcessor {
Map<String, InjectorInfo> toGenerate = new HashMap<>();
for(ExecutableElement inj : injectors) {
- MultipleInjectors minjAnn = inj.getAnnotation(MultipleInjectors.class);
+ Injector[] minjAnn = inj.getAnnotationsByType(Injector.class);
int iterationNumber = 1;
- for(Injector injectorAnn : minjAnn.value()) { //java is dumb
+ for(Injector injectorAnn : minjAnn) { //java is dumb
List<ExecutableElement> injectionCandidates = targets;
//case 1: it has a name, try to match it