Fix false negatives when checking missing methods

This commit is contained in:
Alexey Andreev 2022-05-19 10:25:21 +03:00
parent 6a760f1d0c
commit be259f1667

View File

@ -56,10 +56,13 @@ public class MissingItemsProcessor {
public void processClass(ClassHolder cls) {
for (MethodHolder method : cls.getMethods()) {
if (reachableMethods.contains(method.getReference()) && method.getProgram() != null) {
MethodDependencyInfo methodDep = dependencyInfo.getMethod(method.getReference());
if (methodDep != null && methodDep.isUsed()) {
processMethod(method);
}
}
}
}
public void processMethod(MethodHolder method) {
processMethod(method.getReference(), method.getProgram());