fix: compile error
All checks were successful
Build / Gradle-Build (push) Successful in 9s
Publish / Gradle-Publish (push) Successful in 10s
Test / Gradle-Test (push) Successful in 11s

This commit is contained in:
Tueem 2025-04-14 19:04:09 +02:00
parent e425989106
commit 4c800cfd89
Signed by: tueem
GPG Key ID: F2CE0513D231AD7A

View File

@ -11,6 +11,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import net.tomatentum.cutin.ReflectedMethodFactory;
import net.tomatentum.cutin.ReflectedMethodFactory.ParserResults;
import net.tomatentum.cutin.container.MethodContainer;
import net.tomatentum.cutin.util.ReflectionUtil;
@ -81,14 +82,14 @@ public abstract class BestCandidateMethod<I extends Object, C extends Object> ex
}
@Override
public Optional<ReflectedMethod<I, C>> produce(Method method, Object containingObject) {
Optional<BestCandidateMethod<I, C>> bcMethod = bcProduce(methodName, containingObject);
public Optional<ReflectedMethod<I, C>> produce(Method method, Object containingObject, ParserResults results) {
Optional<BestCandidateMethod<I, C>> bcMethod = bcProduce(methodName, containingObject, results);
if (bcMethod.isEmpty() || methodContainer.methods().contains(bcMethod.get()))
return Optional.empty();
return Optional.of(bcMethod.get());
}
protected abstract Optional<BestCandidateMethod<I, C>> bcProduce(String methodName, Object containingObject);
protected abstract Optional<BestCandidateMethod<I, C>> bcProduce(String methodName, Object containingObject, ParserResults results);
}