Skip to content
Snippets Groups Projects
Commit 7cc3df84 authored by dgelessus's avatar dgelessus
Browse files

Convert mainfile to File right away

parent 9e5b9657
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,6 @@ import static de.tlc4b.MP.*; ...@@ -40,7 +40,6 @@ import static de.tlc4b.MP.*;
public class TLC4B { public class TLC4B {
private static final String CSV_DELIMITER = ";"; private static final String CSV_DELIMITER = ";";
private String filename;
private File mainfile, traceFile; private File mainfile, traceFile;
private String machineFileNameWithoutFileExtension; private String machineFileNameWithoutFileExtension;
// e.g. Test of file foo/bar/Test.mch // e.g. Test of file foo/bar/Test.mch
...@@ -272,7 +271,7 @@ public class TLC4B { ...@@ -272,7 +271,7 @@ public class TLC4B {
if (remainingArgs.length != 1) { if (remainingArgs.length != 1) {
throw new TLC4BIOException("Main machine required!"); throw new TLC4BIOException("Main machine required!");
} else { } else {
filename = remainingArgs[0]; mainfile = new File(remainingArgs[0]);
} }
TLC4BGlobals.setVerbose(line.hasOption(VERBOSE.arg())); TLC4BGlobals.setVerbose(line.hasOption(VERBOSE.arg()));
...@@ -401,7 +400,6 @@ public class TLC4B { ...@@ -401,7 +400,6 @@ public class TLC4B {
} }
private void handleMainFileName() { private void handleMainFileName() {
mainfile = new File(filename);
if (!mainfile.exists()) { if (!mainfile.exists()) {
throw new TLC4BIOException("The file " + mainfile.getPath() + " does not exist."); throw new TLC4BIOException("The file " + mainfile.getPath() + " does not exist.");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment