summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorSaurabh Kumar26 <sk00552209@techmahindra.com>2018-05-04 13:59:36 +0530
committerSaurabh Kumar26 <sk00552209@techmahindra.com>2018-05-04 13:59:36 +0530
commit07d7aabab932cffe301781a560f74d0efdf20cd8 (patch)
treed7b02377c2f1b0102cbbd7ed21ba22a1791f5bda /src/main
parent0ee32170163c467c88e35f2ec019df486b9f4c33 (diff)
sonar critical for Conditional Statement
added '{}' after if statement Sonar Link: https://sonar.onap.org/project/issues?assignees=SaurabhKumar26&id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr&resolved=false&severities=CRITICAL Location: src/.../att/nsa/cambria/backends/kafka/KafkaConsumerCache.java Line No. 244 Change-Id: I293b0543f1a0ccfc3fcd4633e6ef2b54751f0ab8 Issue-ID: DMAAP-463 Signed-off-by: Saurabh Kumar26 <sk00552209@techmahindra.com>
Diffstat (limited to 'src/main')
-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);