Renamed local variable to match the regular expression 11/108611/2
authorRupinder <rupinsi1@in.ibm.com>
Mon, 1 Jun 2020 08:02:31 +0000 (13:32 +0530)
committerTakamune Cho <takamune.cho@att.com>
Wed, 3 Jun 2020 13:07:42 +0000 (13:07 +0000)
Issue-ID: APPC-1859
Change-Id: Ie465c14b37705e98ec289f43c574780a31fe4121
Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
appc-dg/appc-dg-shared/appc-dg-mdsal-store/appc-dg-mdsal-bundle/src/main/java/org/onap/appc/mdsal/provider/MdsalStoreProvider.java
appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/src/main/java/org/onap/appc/executionqueue/helper/Util.java

index e362f0a..4c02332 100644 (file)
@@ -59,7 +59,7 @@ public class MdsalStoreProvider implements MdsalStoreService ,AutoCloseable{
     protected BindingAwareBroker.RpcRegistration<MdsalStoreService> rpcRegistration;
     private final EELFLogger log = EELFManager.getInstance().getLogger(MdsalStoreProvider.class);
     private final ExecutorService executor;
-    private final static String APP_NAME = "MdsalStoreProvider";
+    private static final String APP_NAME = "MdsalStoreProvider";
 
     public MdsalStoreProvider(DataBroker dataBroker2, NotificationPublishService notificationProviderService
             , RpcProviderRegistry rpcRegistry2){
index b890014..3affb30 100644 (file)
@@ -35,10 +35,10 @@ import java.util.concurrent.atomic.AtomicInteger;
 
 public class Util {
 
-    private int default_queue_size = 10;
-    private int default_threadpool_size = 10;
-    private String queue_size_key = "appc.dispatcher.executionqueue.backlog.size";
-    private String threadpool_size_key = "appc.dispatcher.executionqueue.threadpool.size";
+    private int defaultQueueSize = 10;
+    private int defaultThreadpoolSize = 10;
+    private String queueSizeKey = "appc.dispatcher.executionqueue.backlog.size";
+    private String threadpoolSizeKey = "appc.dispatcher.executionqueue.threadpool.size";
     private EELFLogger logger = EELFManager.getInstance().getLogger(Util.class);
 
     private Configuration configuration;
@@ -52,9 +52,9 @@ public class Util {
     }
 
     public int getExecutionQueueSize() {
-        String sizeStr = configuration.getProperty(queue_size_key, String.valueOf(default_queue_size));
+        String sizeStr = configuration.getProperty(queueSizeKey, String.valueOf(defaultQueueSize));
 
-        int size = default_queue_size;
+        int size = defaultQueueSize;
         try {
             size = Integer.parseInt(sizeStr);
         } catch (NumberFormatException e) {
@@ -65,9 +65,9 @@ public class Util {
     }
 
     public int getThreadPoolSize() {
-        String sizeStr = configuration.getProperty(threadpool_size_key, String.valueOf(default_threadpool_size));
+        String sizeStr = configuration.getProperty(threadpoolSizeKey, String.valueOf(defaultThreadpoolSize));
 
-        int size = default_threadpool_size;
+        int size = defaultThreadpoolSize;
         try {
             size = Integer.parseInt(sizeStr);
         } catch (NumberFormatException e) {