summaryrefslogtreecommitdiffstats
path: root/netconfsimulator/src
diff options
context:
space:
mode:
authorBogumil Zebek <bogumil.zebek@nokia.com>2020-04-21 11:31:49 +0200
committerZebek Bogumil <bogumil.zebek@nokia.com>2020-04-21 11:31:49 +0200
commit7fdd72a778f6a84cf6103ec88c3106c09e20c839 (patch)
treeb332c5d062a6c6e9169a8c172630b543ee3d4a03 /netconfsimulator/src
parent617bb3d3a417ea4565b5124d9f1b17029a863fdb (diff)
Check if command line arguments are used properly
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
Diffstat (limited to 'netconfsimulator/src')
-rw-r--r--netconfsimulator/src/main/java/org/onap/netconfsimulator/Main.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/netconfsimulator/src/main/java/org/onap/netconfsimulator/Main.java b/netconfsimulator/src/main/java/org/onap/netconfsimulator/Main.java
index e2a0ed0..1065e71 100644
--- a/netconfsimulator/src/main/java/org/onap/netconfsimulator/Main.java
+++ b/netconfsimulator/src/main/java/org/onap/netconfsimulator/Main.java
@@ -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);
}
}