diff options
author | priyanka.akhade <priyanka.akhade@huawei.com> | 2020-05-12 11:11:18 +0000 |
---|---|---|
committer | priyanka.akhade <priyanka.akhade@huawei.com> | 2020-05-12 11:11:18 +0000 |
commit | b8935cd526d698118d3b3c5324075626dbeb5c70 (patch) | |
tree | 927b7c2495b743fee78e15308c68b52c81e04f2d | |
parent | 81c3cbfc6ff60fc705d142a88a64654a75c010e0 (diff) |
sonar security issue fix- Make sure that command line arguments are used safely here
Signed-off-by: priyanka.akhade <priyanka.akhade@huawei.com>
Issue-ID: CLI-270
Change-Id: I103cc54099f7cdd9f196479c934149da4b65dd01
-rw-r--r-- | grpc/grpc-server/src/main/java/org/open/infc/grpc/server/OpenInterfaceGrpcServer.java | 2 | ||||
-rw-r--r-- | 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()); } |