From b3727191b43317edd6057df8a1e4d9d1e70d8d3a Mon Sep 17 00:00:00 2001 From: Ulugbek Date: Sat, 9 Jul 2022 15:52:17 +0200 Subject: [PATCH] TeaVMTool: `resolveTransformers()` doesn't need to take as an argument variable that it can access itself --- tools/core/src/main/java/org/teavm/tooling/TeaVMTool.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/core/src/main/java/org/teavm/tooling/TeaVMTool.java b/tools/core/src/main/java/org/teavm/tooling/TeaVMTool.java index e77f8d8dc..a46290d23 100644 --- a/tools/core/src/main/java/org/teavm/tooling/TeaVMTool.java +++ b/tools/core/src/main/java/org/teavm/tooling/TeaVMTool.java @@ -427,7 +427,7 @@ public class TeaVMTool { } vm.installPlugins(); - for (ClassHolderTransformer transformer : resolveTransformers(classLoader)) { + for (ClassHolderTransformer transformer : resolveTransformers()) { vm.add(transformer); } if (mainClass != null) { @@ -556,7 +556,7 @@ public class TeaVMTool { copier.copy(new File(targetDirectory, "src")); } - private List resolveTransformers(ClassLoader classLoader) { + private List resolveTransformers() { List transformerInstances = new ArrayList<>(); if (transformers == null) { return transformerInstances;