fix: do not reset injector counter every time

This commit is contained in:
zaaarf 2023-04-11 13:29:21 +02:00
parent 1303948c94
commit 673b5064e7
No known key found for this signature in database
GPG key ID: 82240E075E31FA4C

View file

@ -258,9 +258,9 @@ public class LilleroProcessor extends AbstractProcessor {
HashSet<ExecutableElement> matchedInjectors = new HashSet<>(); HashSet<ExecutableElement> matchedInjectors = new HashSet<>();
HashSet<VariableElement> matchedMethodFinders = new HashSet<>(); HashSet<VariableElement> matchedMethodFinders = new HashSet<>();
int iterationNumber = 1;
for(ExecutableElement tg : targets) { for(ExecutableElement tg : targets) {
Target[] mtgAnn = tg.getAnnotationsByType(Target.class); Target[] mtgAnn = tg.getAnnotationsByType(Target.class);
int iterationNumber = 1;
for(Target targetAnn : mtgAnn) { for(Target targetAnn : mtgAnn) {
List<ExecutableElement> injectorCandidates = injectors; List<ExecutableElement> injectorCandidates = injectors;
List<VariableElement> finderCandidates = methodFinders; List<VariableElement> finderCandidates = methodFinders;