summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorDeterme, Sebastien (sd378r) <sd378r@intl.att.com>2017-08-30 05:48:15 -0700
committerDeterme, Sebastien (sd378r) <sd378r@intl.att.com>2017-08-30 05:48:15 -0700
commitef2025c00c146ecf2b8ddfbef3ec7f49b1726f49 (patch)
treea09aeab4334a776ba2a16e2817b25dc0b6f62da2 /src/main
parent6c9759e89572f9fbe40eb30ce15fcfe6efa11bc8 (diff)
Fix Sonar bugs
In Application.class Blocker issues fixed Change-Id: I8e64a0caee24e23d52779d01cdffade61f7a6f53 Issue-Id: CLAMP-43 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/onap/clamp/clds/Application.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/org/onap/clamp/clds/Application.java b/src/main/java/org/onap/clamp/clds/Application.java
index bebb0784..4fc68e1d 100644
--- a/src/main/java/org/onap/clamp/clds/Application.java
+++ b/src/main/java/org/onap/clamp/clds/Application.java
@@ -23,6 +23,10 @@
package org.onap.clamp.clds;
+import com.att.ajsc.common.utility.SystemPropertiesLoader;
+import com.att.eelf.configuration.EELFLogger;
+import com.att.eelf.configuration.EELFManager;
+
import java.util.ArrayList;
import java.util.Collection;
@@ -51,10 +55,6 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
-import com.att.ajsc.common.utility.SystemPropertiesLoader;
-import com.att.eelf.configuration.EELFLogger;
-import com.att.eelf.configuration.EELFManager;
-
@SpringBootApplication
@ComponentScan(basePackages = { "org.onap.clamp.clds", "com.att.ajsc" })
@EnableAutoConfiguration(exclude = { CamundaBpmWebappAutoConfiguration.class, HibernateJpaAutoConfiguration.class,
@@ -63,7 +63,7 @@ import com.att.eelf.configuration.EELFManager;
@EnableAsync
public class Application extends SpringBootServletInitializer {
- protected static final EELFLogger logger = EELFManager.getInstance().getLogger(Application.class);
+ protected static final EELFLogger eelfLogger = EELFManager.getInstance().getLogger(Application.class);
@Autowired
protected ApplicationContext appContext;
@@ -94,7 +94,7 @@ public class Application extends SpringBootServletInitializer {
public static void main(String[] args) throws Exception {
SystemPropertiesLoader.addSystemProperties();
- SpringApplication.run(Application.class, args);
+ SpringApplication.run(Application.class, args); // NOSONAR
}
@Bean
@@ -136,7 +136,7 @@ public class Application extends SpringBootServletInitializer {
private Connector createRedirectConnector(int redirectSecuredPort) {
if (redirectSecuredPort <= 0) {
- logger.warn(
+ eelfLogger.warn(
"HTTP port redirection to HTTPS is disabled because the HTTPS port is 0 (random port) or -1 (Connector disabled)");
return null;
}