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
@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);
}
}
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);
}