diff options
author | Rupinder <rupinsi1@in.ibm.com> | 2020-06-01 13:32:31 +0530 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2020-06-03 13:07:42 +0000 |
commit | aa350b8ce81033db26dbb88f47c072bd0f32ce86 (patch) | |
tree | 9b4bdeb0edd4cd190230a499bb382522d77eec35 /appc-dispatcher | |
parent | ee2eb7f226eb6e4faf6aa020acf379cbd2e2b254 (diff) |
Renamed local variable to match the regular expression
Issue-ID: APPC-1859
Change-Id: Ie465c14b37705e98ec289f43c574780a31fe4121
Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
Diffstat (limited to 'appc-dispatcher')
-rw-r--r-- | appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/src/main/java/org/onap/appc/executionqueue/helper/Util.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/src/main/java/org/onap/appc/executionqueue/helper/Util.java b/appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/src/main/java/org/onap/appc/executionqueue/helper/Util.java index b89001403..3affb3094 100644 --- a/appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/src/main/java/org/onap/appc/executionqueue/helper/Util.java +++ b/appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/src/main/java/org/onap/appc/executionqueue/helper/Util.java @@ -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) { |