diff options
author | sharath reddy <bs.reddy@huawei.com> | 2022-03-23 21:22:21 +0530 |
---|---|---|
committer | sharath reddy <bs.reddy@huawei.com> | 2022-03-23 21:29:38 +0530 |
commit | f439543779cf2dfac0b68443aea921c55983bf48 (patch) | |
tree | 74dee9739cd3e202b8a85360d5399a0cb1f2fc23 /framework | |
parent | 9df5c4d3e3e7b72b54de212a4a97ef18e5930948 (diff) |
Fixed Minor Code Smells issues "Deprecated JsonParser"
Issue-ID: CLI-439
Signed-off-by: sharath reddy <bs.reddy@huawei.com>
Change-Id: I49fdc2fe1aa48ae78317aba94fdd7f0232334860
Signed-off-by: sharath reddy <bs.reddy@huawei.com>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/src/main/java/org/onap/cli/fw/output/print/OnapCommandPrint.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/src/main/java/org/onap/cli/fw/output/print/OnapCommandPrint.java b/framework/src/main/java/org/onap/cli/fw/output/print/OnapCommandPrint.java index 6850fe3f..d2bc98be 100644 --- a/framework/src/main/java/org/onap/cli/fw/output/print/OnapCommandPrint.java +++ b/framework/src/main/java/org/onap/cli/fw/output/print/OnapCommandPrint.java @@ -270,7 +270,7 @@ public class OnapCommandPrint { array.add(rowO); } try { - return new JsonParser().parse(array.toJSONString()).toString(); + return JsonParser.parseString(array.toJSONString()).toString(); } catch (Exception e) { // NOSONAR return array.toJSONString(); } |