aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKanagaraj Manickam <kanagaraj.manickam@huawei.com>2020-05-12 14:58:57 +0000
committerGerrit Code Review <gerrit@onap.org>2020-05-12 14:58:57 +0000
commit03f800b0007857d220e8a27fd7da06d0a9324edc (patch)
tree97daae78aa863bfe1c5f3589f5e64193b2cc1f7c
parent0fa052c994c900ff809d5ff32d93752190e3ff5a (diff)
parentb8935cd526d698118d3b3c5324075626dbeb5c70 (diff)
Merge "sonar security issue fix- Make sure that command line arguments are used safely here"
-rw-r--r--grpc/grpc-server/src/main/java/org/open/infc/grpc/server/OpenInterfaceGrpcServer.java2
-rw-r--r--main/src/main/java/org/onap/cli/main/OnapCli.java2
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());
}