aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/main/java/org/onap
diff options
context:
space:
mode:
authorsharath reddy <bs.reddy@huawei.com>2022-03-23 21:22:21 +0530
committersharath reddy <bs.reddy@huawei.com>2022-03-23 21:29:38 +0530
commitf439543779cf2dfac0b68443aea921c55983bf48 (patch)
tree74dee9739cd3e202b8a85360d5399a0cb1f2fc23 /framework/src/main/java/org/onap
parent9df5c4d3e3e7b72b54de212a4a97ef18e5930948 (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/src/main/java/org/onap')
-rw-r--r--framework/src/main/java/org/onap/cli/fw/output/print/OnapCommandPrint.java2
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();
}