diff --git a/test/DefineClass.java b/test/DefineClass.java index 4e0d8faef7..ea3b6362ae 100644 --- a/test/DefineClass.java +++ b/test/DefineClass.java @@ -4,7 +4,6 @@ import java.io.FileInputStream; public class DefineClass { private static File findClass(String name, File directory) { - File[] files = directory.listFiles(); for (File file: directory.listFiles()) { if (file.isFile()) { if (file.getName().equals(name + ".class")) { diff --git a/test/Zip.java b/test/Zip.java index 8862e767c7..9b34444023 100644 --- a/test/Zip.java +++ b/test/Zip.java @@ -7,7 +7,6 @@ import java.util.zip.ZipEntry; public class Zip { private static String findJar(File directory) { - File[] files = directory.listFiles(); for (File file: directory.listFiles()) { if (file.isFile()) { if (file.getName().endsWith(".jar")) {