diff options
author | 2018-05-09 17:56:43 +0000 | |
---|---|---|
committer | 2018-05-09 17:56:43 +0000 | |
commit | e0939f596aa0598581639b5e90d9c8d8264173a7 (patch) | |
tree | db1909b38a71bc48eff4388eba3218d46da40091 /src/main/java | |
parent | 66014e42213c316bfdd5b3925028914959ff723c (diff) | |
parent | cd2a4c05c4daf373c07e8dd579220956a2be91d5 (diff) |
Merge "sonar critical for Conditional Statement"
Diffstat (limited to 'src/main/java')
-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; |