remove redundant code from DefineClass and Zip tests

This commit is contained in:
Joel Dice 2011-01-21 16:11:36 -07:00
parent 3aff7dc861
commit 0cc6156932
2 changed files with 0 additions and 2 deletions

View File

@ -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")) {

View File

@ -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")) {