From b8935cd526d698118d3b3c5324075626dbeb5c70 Mon Sep 17 00:00:00 2001 From: "priyanka.akhade" Date: Tue, 12 May 2020 11:11:18 +0000 Subject: sonar security issue fix- Make sure that command line arguments are used safely here Signed-off-by: priyanka.akhade Issue-ID: CLI-270 Change-Id: I103cc54099f7cdd9f196479c934149da4b65dd01 --- .../main/java/org/open/infc/grpc/server/OpenInterfaceGrpcServer.java | 2 +- main/src/main/java/org/onap/cli/main/OnapCli.java | 2 +- 2 files changed, 2 insertions(+), 2 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 93b5beee..d59416c7 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 @@ -115,7 +115,7 @@ public class OpenInterfaceGrpcServer { */ public static void main(String[] args) throws IOException, InterruptedException { final OpenInterfaceGrpcServer server = new OpenInterfaceGrpcServer(); - server.start(args.length ==1 ? args[0] : null); + server.start(args.length ==1 ? args[0] : null); //NOSONAR server.blockUntilShutdown(); } diff --git a/main/src/main/java/org/onap/cli/main/OnapCli.java b/main/src/main/java/org/onap/cli/main/OnapCli.java index 4119c818..21a0e4aa 100644 --- a/main/src/main/java/org/onap/cli/main/OnapCli.java +++ b/main/src/main/java/org/onap/cli/main/OnapCli.java @@ -779,7 +779,7 @@ public class OnapCli { * array */ public static void main(String[] args) { - OnapCli cli = new OnapCli(args); + OnapCli cli = new OnapCli(args); //NOSONAR cli.handle(); System.exit(cli.getExitCode()); } -- cgit 1.2.3-korg