diff options
author | Ram Koya <rk541m@att.com> | 2018-05-07 17:50:59 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-05-07 17:50:59 +0000 |
commit | c683a7315fbffd0fe59164dd61b8252b346c4cd7 (patch) | |
tree | f66b404ccf8bc9bb0993d5931e8ecf069531f24f /src | |
parent | c3b0946740bff673c14d886238b8398dd1af8dc2 (diff) | |
parent | 07d7aabab932cffe301781a560f74d0efdf20cd8 (diff) |
Merge "sonar critical for Conditional Statement"
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java | 4 |
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); |