Skip to content

Commit 9419c47

Browse files
author
christoph
committed
Revert "fixed issue: no optimpref file existing"
This reverts commit 9bb5457.
1 parent 9bb5457 commit 9419c47

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

TimeNETOptimizationEnvironment/src/toe/optimization/OptimizerPreferences.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,21 +1345,19 @@ public int getNumberOfOptiPrefs() {
13451345

13461346
File[] listOfFiles = folderToScan.listFiles();
13471347

1348-
if (listOfFiles != null) {
1349-
for (int i = 0; i < listOfFiles.length; i++) {
1350-
if (listOfFiles[i].isFile()) {
1351-
target_file = listOfFiles[i].getName();
1352-
if (target_file.startsWith(standardFile.getName())) {
1353-
numberOfFoundOptiPrefs++;
1354-
}
1348+
for (int i = 0; i < listOfFiles.length; i++) {
1349+
if (listOfFiles[i].isFile()) {
1350+
target_file = listOfFiles[i].getName();
1351+
if (target_file.startsWith(standardFile.getName())) {
1352+
numberOfFoundOptiPrefs++;
13551353
}
13561354
}
13571355
}
13581356
return numberOfFoundOptiPrefs;
13591357
}
13601358

13611359
/**
1362-
* Updates the label to show how many Optipreferences are stored in
1360+
* Updates the label to shwo how many Optipreferences are stored in
13631361
* pref-folder
13641362
*/
13651363
private void updateNumberOfOptiPrefs() {

0 commit comments

Comments
 (0)