Replaced all tabs with spaces in java and pom.xml
[so.git] / adapters / mso-sdnc-adapter / src / main / java / org / onap / so / adapters / sdnc / SDNCAdapterApplication.java
index 2fd0a58..a38d057 100644 (file)
@@ -21,7 +21,6 @@
 package org.onap.so.adapters.sdnc;
 
 import java.util.concurrent.Executor;
-
 import org.onap.so.logging.jaxrs.filter.MDCTaskDecorator;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
@@ -31,43 +30,43 @@ import org.springframework.boot.autoconfigure.domain.EntityScan;
 import org.springframework.context.annotation.Bean;
 import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
 
-@SpringBootApplication(scanBasePackages = { "org.onap" })
+@SpringBootApplication(scanBasePackages = {"org.onap"})
 public class SDNCAdapterApplication {
 
 
-       @Value("${mso.async.core-pool-size}")
-       private int corePoolSize;
+    @Value("${mso.async.core-pool-size}")
+    private int corePoolSize;
 
-       @Value("${mso.async.max-pool-size}")
-       private int maxPoolSize;
+    @Value("${mso.async.max-pool-size}")
+    private int maxPoolSize;
 
-       @Value("${mso.async.queue-capacity}")
-       private int queueCapacity;
+    @Value("${mso.async.queue-capacity}")
+    private int queueCapacity;
 
-       private static final String LOGS_DIR = "logs_dir";
+    private static final String LOGS_DIR = "logs_dir";
 
-       private static void setLogsDir() {
-               if (System.getProperty(LOGS_DIR) == null) {
-                       System.getProperties().setProperty(LOGS_DIR, "./logs/sdnc/");
-               }
-       }
+    private static void setLogsDir() {
+        if (System.getProperty(LOGS_DIR) == null) {
+            System.getProperties().setProperty(LOGS_DIR, "./logs/sdnc/");
+        }
+    }
 
-       public static void main(String[] args) {
-               SpringApplication.run(SDNCAdapterApplication.class, args);
-               System.getProperties().setProperty("server.name", "Springboot");
-               setLogsDir();
-       }
+    public static void main(String[] args) {
+        SpringApplication.run(SDNCAdapterApplication.class, args);
+        System.getProperties().setProperty("server.name", "Springboot");
+        setLogsDir();
+    }
 
-       @Bean
-       public Executor asyncExecutor() {
-               ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
-               executor.setTaskDecorator(new MDCTaskDecorator());
-               executor.setCorePoolSize(corePoolSize);
-               executor.setMaxPoolSize(maxPoolSize);
-               executor.setQueueCapacity(queueCapacity);
-               executor.setThreadNamePrefix("SDNCAdapter-");
-               executor.initialize();
-               return executor;
-       }
+    @Bean
+    public Executor asyncExecutor() {
+        ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
+        executor.setTaskDecorator(new MDCTaskDecorator());
+        executor.setCorePoolSize(corePoolSize);
+        executor.setMaxPoolSize(maxPoolSize);
+        executor.setQueueCapacity(queueCapacity);
+        executor.setThreadNamePrefix("SDNCAdapter-");
+        executor.initialize();
+        return executor;
+    }
 
 }