diff options
author | 2022-03-23 21:22:21 +0530 | |
---|---|---|
committer | 2022-03-23 21:29:38 +0530 | |
commit | f439543779cf2dfac0b68443aea921c55983bf48 (patch) | |
tree | 74dee9739cd3e202b8a85360d5399a0cb1f2fc23 /grpc/grpc-server/src | |
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 'grpc/grpc-server/src')
-rw-r--r-- | grpc/grpc-server/src/main/java/org/open/infc/grpc/server/OpenInterfaceGrpcServer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grpc/grpc-server/src/main/java/org/open/infc/grpc/server/OpenInterfaceGrpcServer.java b/grpc/grpc-server/src/main/java/org/open/infc/grpc/server/OpenInterfaceGrpcServer.java index ba9920cb..7b00c16c 100644 --- a/grpc/grpc-server/src/main/java/org/open/infc/grpc/server/OpenInterfaceGrpcServer.java +++ b/grpc/grpc-server/src/main/java/org/open/infc/grpc/server/OpenInterfaceGrpcServer.java @@ -277,7 +277,7 @@ public class OpenInterfaceGrpcServer { public static void setOutputAttr(Builder reply, String printOut){ try { - reply.putAttrs(OnapCommandConstants.RESULTS, new JsonParser().parse(printOut).toString()); + reply.putAttrs(OnapCommandConstants.RESULTS, JsonParser.parseString(printOut).toString()); } catch (Exception e) { // NOSONAR reply.putAttrs(OnapCommandConstants.RESULTS, printOut); } |