From 8fd7006a346e562ed11bdb3c0cfebba3197ff860 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Wed, 15 Mar 2023 12:25:59 +0100 Subject: [PATCH] fix: repeatable annotation support fix, part 2 --- src/main/java/ftbsc/lll/processor/LilleroProcessor.java | 6 +++--- 1 file 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 injectors = findAnnotatedMethods(cl, MultipleInjectors.class); + List injectors = findAnnotatedMethods(cl, Injector.class); List targets = findAnnotatedMethods(cl, Target.class); @@ -375,9 +375,9 @@ public class LilleroProcessor extends AbstractProcessor { Map 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 injectionCandidates = targets; //case 1: it has a name, try to match it