diff options
author | 2018-05-03 16:40:47 +0530 | |
---|---|---|
committer | 2018-05-03 16:40:47 +0530 | |
commit | e3fce28a055f2476407e58d54e83044928f8e9c5 (patch) | |
tree | 5f445978eff8231ff1f79d66f2ff33637dedecbc /src/main/java/com | |
parent | 0ee32170163c467c88e35f2ec019df486b9f4c33 (diff) |
sonar major issue for 2 statements per line
At most one statement is allowed per line, but 2 statements were found on this line
Sonar Link:
https://sonar.onap.org/project/issues?assignees=Sahani_Naik&id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr&open=AV4-VaZ932hFUzlqc5lz&resolved=false
Location:
src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java
Line No-87
Change-Id: I55b8452eda65d5b3fdedd87fa68326d60d9cd457
Issue-ID: DMAAP-454
Signed-off-by: Sahani Ravindrana Naik <sn00552219@techmahindra.com>
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java b/src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java index 2959f41..55cb91e 100644 --- a/src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java +++ b/src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java @@ -84,9 +84,10 @@ public class DMaaPMetricsSender implements Runnable { Setting_CambriaBaseUrl=Setting_CambriaBaseUrl==null?"localhost":Setting_CambriaBaseUrl; String Setting_CambriaTopic=com.att.ajsc.filemonitor.AJSCPropertiesMap.getProperty(CambriaConstants.msgRtr_prop,kSetting_CambriaTopic); - if(Setting_CambriaTopic==null) Setting_CambriaTopic = "msgrtr.apinode.metrics.dmaap"; - - // Setting_CambriaBaseUrl=Setting_CambriaBaseUrl==null?defaultTopic:Setting_CambriaBaseUrl; + if(Setting_CambriaTopic==null) { + Setting_CambriaTopic = "msgrtr.apinode.metrics.dmaap"; + } + // Setting_CambriaBaseUrl=Setting_CambriaBaseUrl==null?defaultTopic:Setting_CambriaBaseUrl; String Setting_CambriaSendFreqSecs=com.att.ajsc.filemonitor.AJSCPropertiesMap.getProperty(CambriaConstants.msgRtr_prop,kSetting_CambriaSendFreqSecs); |