summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRam Koya <rk541m@att.com>2018-05-09 17:56:43 +0000
committerGerrit Code Review <gerrit@onap.org>2018-05-09 17:56:43 +0000
commite0939f596aa0598581639b5e90d9c8d8264173a7 (patch)
treedb1909b38a71bc48eff4388eba3218d46da40091
parent66014e42213c316bfdd5b3925028914959ff723c (diff)
parentcd2a4c05c4daf373c07e8dd579220956a2be91d5 (diff)
Merge "sonar critical for Conditional Statement"
-rw-r--r--src/main/java/com/att/nsa/cambria/beans/DMaaPKafkaConsumerFactory.java5
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;