diff options
author | Saurabh Kumar26 <sk00552209@techmahindra.com> | 2018-05-07 16:46:42 +0530 |
---|---|---|
committer | Saurabh Kumar26 <sk00552209@techmahindra.com> | 2018-05-07 16:46:42 +0530 |
commit | cd2a4c05c4daf373c07e8dd579220956a2be91d5 (patch) | |
tree | e4baef8e7d42f25480e112fa969e546c9ac97711 /src/main/java/com/att | |
parent | 0ee32170163c467c88e35f2ec019df486b9f4c33 (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/main/java/com/att/nsa/cambria/beans/DMaaPKafkaConsumerFactory.java
Line No. 116
Change-Id: Icc24ec635035e9d62486bcd972263c5926d8b4e1
Issue-ID: DMAAP-470
Signed-off-by: Saurabh Kumar26 <sk00552209@techmahindra.com>
Diffstat (limited to 'src/main/java/com/att')
-rw-r--r-- | src/main/java/com/att/nsa/cambria/beans/DMaaPKafkaConsumerFactory.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/cambria/beans/DMaaPKafkaConsumerFactory.java b/src/main/java/com/att/nsa/cambria/beans/DMaaPKafkaConsumerFactory.java index 02ae109..63f1dd5 100644 --- a/src/main/java/com/att/nsa/cambria/beans/DMaaPKafkaConsumerFactory.java +++ b/src/main/java/com/att/nsa/cambria/beans/DMaaPKafkaConsumerFactory.java @@ -111,7 +111,10 @@ public class DMaaPKafkaConsumerFactory implements ConsumerFactory { // kSetting_EnableCache, kDefault_IsCacheEnabled); boolean kSetting_EnableCache= kDefault_IsCacheEnabled; String strkSetting_EnableCache = AJSCPropertiesMap.getProperty(CambriaConstants.msgRtr_prop,kSetting_EnableCache+""); - if(null!=strkSetting_EnableCache)kSetting_EnableCache=Boolean.parseBoolean(strkSetting_EnableCache); + if(null!=strkSetting_EnableCache) + { + kSetting_EnableCache=Boolean.parseBoolean(strkSetting_EnableCache); + } final boolean isCacheEnabled = kSetting_EnableCache; |