mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-05 06:34:11 -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) {
|
public void processClass(ClassHolder cls) {
|
||||||
for (MethodHolder method : cls.getMethods()) {
|
for (MethodHolder method : cls.getMethods()) {
|
||||||
if (reachableMethods.contains(method.getReference()) && method.getProgram() != null) {
|
if (reachableMethods.contains(method.getReference()) && method.getProgram() != null) {
|
||||||
|
MethodDependencyInfo methodDep = dependencyInfo.getMethod(method.getReference());
|
||||||
|
if (methodDep != null && methodDep.isUsed()) {
|
||||||
processMethod(method);
|
processMethod(method);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void processMethod(MethodHolder method) {
|
public void processMethod(MethodHolder method) {
|
||||||
processMethod(method.getReference(), method.getProgram());
|
processMethod(method.getReference(), method.getProgram());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user