From 1abea977df430b108db850e7a5649e1726102b01 Mon Sep 17 00:00:00 2001 From: ChetanT-System Date: Tue, 30 Apr 2024 13:28:02 +0530 Subject: [PATCH] - codeQL warning fix --- .../tractusx/sde/submodels/slbab/SingleLevelBomAsBuiltV300.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sde-submodules/single-level-bom-as-built/src/main/java/org/eclipse/tractusx/sde/submodels/slbab/SingleLevelBomAsBuiltV300.java b/modules/sde-submodules/single-level-bom-as-built/src/main/java/org/eclipse/tractusx/sde/submodels/slbab/SingleLevelBomAsBuiltV300.java index 0487a73a2..ec4c5dc62 100644 --- a/modules/sde-submodules/single-level-bom-as-built/src/main/java/org/eclipse/tractusx/sde/submodels/slbab/SingleLevelBomAsBuiltV300.java +++ b/modules/sde-submodules/single-level-bom-as-built/src/main/java/org/eclipse/tractusx/sde/submodels/slbab/SingleLevelBomAsBuiltV300.java @@ -37,7 +37,7 @@ public void init() { String resource = "single-level-bom-as-built-v3.0.0.json"; // this is the path within the jar file - InputStream input = this.getClass().getResourceAsStream("/resources/" + resource); + InputStream input = SingleLevelBomAsBuiltV300.class.getResourceAsStream("/resources/" + resource); if (input == null) { // this is how we load file within editor (eg eclipse) input = this.getClass().getClassLoader().getResourceAsStream(resource);