summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRam Koya <rk541m@att.com>2018-05-07 17:50:59 +0000
committerGerrit Code Review <gerrit@onap.org>2018-05-07 17:50:59 +0000
commitc683a7315fbffd0fe59164dd61b8252b346c4cd7 (patch)
treef66b404ccf8bc9bb0993d5931e8ecf069531f24f
parentc3b0946740bff673c14d886238b8398dd1af8dc2 (diff)
parent07d7aabab932cffe301781a560f74d0efdf20cd8 (diff)
Merge "sonar critical for Conditional Statement"
-rw-r--r--src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java b/src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java
index a9d0d9b..748ee62 100644
--- a/src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java
+++ b/src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java
@@ -239,7 +239,9 @@ public class KafkaConsumerCache {
//final long freq = fSettings.getLong(kSetting_SweepEverySeconds, kDefault_SweepEverySeconds);
long freq = kDefault_SweepEverySeconds;
String strkSetting_SweepEverySeconds = AJSCPropertiesMap.getProperty(CambriaConstants.msgRtr_prop,kSetting_SweepEverySeconds);
- if(null==strkSetting_SweepEverySeconds) strkSetting_SweepEverySeconds = kDefault_SweepEverySeconds+"";
+ if(null==strkSetting_SweepEverySeconds) {
+ strkSetting_SweepEverySeconds = kDefault_SweepEverySeconds+"";
+ }
freq = Long.parseLong(strkSetting_SweepEverySeconds);