Code Review
/
cli.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fixed Minor Code Smells issues "Deprecated JsonParser"
[cli.git]
/
grpc
/
grpc-server
/
src
/
main
/
java
/
org
/
open
/
infc
/
grpc
/
server
/
OpenInterfaceGrpcServer.java
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
ba9920c
..
7b00c16
100644
(file)
--- 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 {
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);
}
} catch (Exception e) { // NOSONAR
reply.putAttrs(OnapCommandConstants.RESULTS, printOut);
}