diff --git a/src/main/java/de/tlc4b/TLC4B.java b/src/main/java/de/tlc4b/TLC4B.java index 51094754bc91e5e537d432e4a02fdad1a847da3f..844675931eadda6bb053632e3be0b9f71eda7535 100644 --- a/src/main/java/de/tlc4b/TLC4B.java +++ b/src/main/java/de/tlc4b/TLC4B.java @@ -2,8 +2,6 @@ package de.tlc4b; import java.io.BufferedWriter; import java.io.File; -import java.io.FileInputStream; -import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.FileWriter; import java.io.IOException; @@ -468,16 +466,7 @@ public class TLC4B { InputStream is = null; FileOutputStream fos = null; try { - - try { - is = new FileInputStream("src/main/resources/standardModules/" + name + ".tla"); - } catch (FileNotFoundException e) { - is = this - .getClass() - .getClassLoader() - .getResourceAsStream("standardModules/" + name + ".tla"); - } - + is = this.getClass().getClassLoader().getResourceAsStream("standardModules/" + name + ".tla"); if (is == null) { // should never happen throw new TranslationException("Unable to determine the source of the standard module: " + name);