Fixed more resource locations not working in jar
authorDaniel Kirschten <daniel.kirschten@gmx.de>
Thu, 18 Jul 2019 20:26:48 +0000 (22:26 +0200)
committerDaniel Kirschten <daniel.kirschten@gmx.de>
Thu, 18 Jul 2019 20:26:48 +0000 (22:26 +0200)
net.mograsim.logic.model/src/net/mograsim/logic/model/snippets/SubmodelComponentSnippetSuppliers.java
net.mograsim.logic.model/src/net/mograsim/logic/model/snippets/highlevelstatehandlers/standard/StandardHighLevelStateHandlerSnippetSuppliers.java

index c640408..7c691a8 100644 (file)
@@ -25,7 +25,7 @@ public class SubmodelComponentSnippetSuppliers
 
        static
        {
-               try (InputStream s = SubmodelComponentSnippetSuppliers.class.getResourceAsStream("./standardSnippetIDMapping.json"))
+               try (InputStream s = SubmodelComponentSnippetSuppliers.class.getResourceAsStream("standardSnippetIDMapping.json"))
                {
                        if (s == null)
                                throw new IOException("Resource not found");
index e81607d..d052cb1 100644 (file)
@@ -22,7 +22,7 @@ public class StandardHighLevelStateHandlerSnippetSuppliers
 
        static
        {
-               try (InputStream s = StandardHighLevelStateHandlerSnippetSuppliers.class.getResourceAsStream("./standardSnippetIDMapping.json"))
+               try (InputStream s = StandardHighLevelStateHandlerSnippetSuppliers.class.getResourceAsStream("standardSnippetIDMapping.json"))
                {
                        if (s == null)
                                throw new IOException("Resource not found");