diff options
author | emaclee <lee.anjella.macabuhay@est.tech> | 2023-03-09 15:50:32 +0000 |
---|---|---|
committer | Priyank Maheshwari <priyank.maheshwari@est.tech> | 2023-03-09 16:09:41 +0000 |
commit | c5472e900897cc8ace79c4580e1956ccfdfb661f (patch) | |
tree | 244dc506c24cd809fda0d9eac789b9afc52a2f2a /cps-ncmp-service/src/main/java/org | |
parent | a4127d6ac902bb430ef11b7844ba3a328bfb1d5b (diff) |
Bug:SubscriptionModelLoader.getFileContentAsString
Issue-ID: CPS-1537
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Change-Id: Icc88a8bf40830853a208e79658f3c590185ad051
Diffstat (limited to 'cps-ncmp-service/src/main/java/org')
-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) { |