diff options
Diffstat (limited to 'cps-ncmp-service/src')
-rw-r--r-- | cps-ncmp-service/src/main/java/org/onap/cps/ncmp/init/SubscriptionModelLoader.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/init/SubscriptionModelLoader.java b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/init/SubscriptionModelLoader.java index 6713491e6e..17413ba34b 100644 --- a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/init/SubscriptionModelLoader.java +++ b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/init/SubscriptionModelLoader.java @@ -109,7 +109,7 @@ public class SubscriptionModelLoader implements ModelLoader { } private String getFileContentAsString() { - try (InputStream inputStream = ClassLoader.getSystemClassLoader() + try (InputStream inputStream = getClass().getClassLoader() .getResourceAsStream("model/subscription.yang")) { return new String(inputStream.readAllBytes(), StandardCharsets.UTF_8); } catch (final Exception exception) { |