Check if command line arguments are used properly 28/106328/1
authorBogumil Zebek <bogumil.zebek@nokia.com>
Tue, 21 Apr 2020 09:31:49 +0000 (11:31 +0200)
committerZebek Bogumil <bogumil.zebek@nokia.com>
Tue, 21 Apr 2020 09:31:49 +0000 (11:31 +0200)
Yes. Parameters are used properly. Thus we will turn off SONAR rule (Using command line arguments is security-sensitive) for this main functions.

Issue-ID: INT-1517
Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
Change-Id: I659ba8d6d932653f4866667faa04236a72d77b6b

netconfsimulator/src/main/java/org/onap/netconfsimulator/Main.java
pnfsimulator/src/main/java/org/onap/pnfsimulator/Main.java

index e2a0ed0..1065e71 100644 (file)
@@ -25,7 +25,9 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
 @SpringBootApplication
 public class Main {
 
-    public static void main(String[] args) {
+    // We are excluding this line in Sonar due to fact that
+    // Spring is handling arguments
+    public static void main(String[] args) { // NOSONAR
         SpringApplication.run(Main.class, args);
     }
 }
index e0eace2..708f27f 100644 (file)
@@ -43,7 +43,9 @@ public class Main {
         this.fsToDbTemplateSynchronizer = fsToDbTemplateSynchronizer;
     }
 
-    public static void main(String[] args) {
+    // We are excluding this line in Sonar due to fact that
+    // Spring is handling arguments
+    public static void main(String[] args) { // NOSONAR
         SpringApplication.run(Main.class, args);
     }