mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
remove redundant code from DefineClass and Zip tests
This commit is contained in:
parent
3aff7dc861
commit
0cc6156932
@ -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")) {
|
||||
|
@ -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")) {
|
||||
|
Loading…
Reference in New Issue
Block a user