mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
TeaVMTool: resolveTransformers()
doesn't need to take as an argument variable that it can access itself
This commit is contained in:
parent
3ff1651184
commit
b3727191b4
|
@ -427,7 +427,7 @@ public class TeaVMTool {
|
||||||
}
|
}
|
||||||
|
|
||||||
vm.installPlugins();
|
vm.installPlugins();
|
||||||
for (ClassHolderTransformer transformer : resolveTransformers(classLoader)) {
|
for (ClassHolderTransformer transformer : resolveTransformers()) {
|
||||||
vm.add(transformer);
|
vm.add(transformer);
|
||||||
}
|
}
|
||||||
if (mainClass != null) {
|
if (mainClass != null) {
|
||||||
|
@ -556,7 +556,7 @@ public class TeaVMTool {
|
||||||
copier.copy(new File(targetDirectory, "src"));
|
copier.copy(new File(targetDirectory, "src"));
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<ClassHolderTransformer> resolveTransformers(ClassLoader classLoader) {
|
private List<ClassHolderTransformer> resolveTransformers() {
|
||||||
List<ClassHolderTransformer> transformerInstances = new ArrayList<>();
|
List<ClassHolderTransformer> transformerInstances = new ArrayList<>();
|
||||||
if (transformers == null) {
|
if (transformers == null) {
|
||||||
return transformerInstances;
|
return transformerInstances;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user