Startup
This commit is contained in:
@@ -40,7 +40,6 @@ import java.lang.reflect.Method;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -65,7 +64,7 @@ import javax.swing.table.TableRowSorter;
|
||||
import org.apache.commons.io.FilenameUtils;
|
||||
import org.python.core.PyList;
|
||||
import static org.python.bouncycastle.util.Arrays.append;
|
||||
|
||||
import java.util.Collections;
|
||||
//</editor-fold>
|
||||
|
||||
/**
|
||||
@@ -2378,8 +2377,10 @@ public class TestingList extends Panel {
|
||||
int iCounter = 0;
|
||||
//search devices and their tests
|
||||
//Scan the list of devices
|
||||
//File[] listOfDevices = TESTS_DEVICES_DEFAULT_DIR.toFile().listFiles();
|
||||
List<File> listOfDevices = new ArrayList<File>();
|
||||
Collections.addAll(listOfDevices, TESTS_DEVICES_DEFAULT_DIR.toFile().listFiles());
|
||||
|
||||
for (File deviceInList : listOfDevices) {
|
||||
propDevice.clear();
|
||||
if (deviceInList.isFile()) {
|
||||
@@ -2416,9 +2417,8 @@ public class TestingList extends Panel {
|
||||
} else { // if nothing found in this directory, see if there is a subdireactory
|
||||
Collections.addAll(listOfDevices, deviceInList.listFiles());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//showEnabledTestsOnly(jCheckBoxMenuShowSelectedTests1.getState());
|
||||
logger.log(Level.INFO, iCounter + " tests loaded.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user