fix: compile error
This commit is contained in:
parent
e425989106
commit
4c800cfd89
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user