mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-03 05:44:10 -08:00
Fix false negatives when checking missing methods
This commit is contained in:
parent
6a760f1d0c
commit
be259f1667
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue
Block a user