Fix false negatives when checking missing methods
@@ -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());
