From 1513792efbf0b414854fb2f3850061ccec30f992 Mon Sep 17 00:00:00 2001 From: Surendra Reddy Katam Date: Mon, 24 Sep 2018 15:08:22 +0530 Subject: Sonar Major issues This block of commented-out lines of code should be removed Sonar Link: https://sonar.onap.org/project/issues?assignees=surendraReddy&id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr&open=AV4-VamI32hFUzlqc5z-&resolved=false&severities=MAJOR Location: src/main/java/com/att/dmf/mr/utils/ConfigurationReader.java Line No- L167 L169 Change-Id: I10fc7c7de82d6015c852ebb7c11b43177b7da5f9 Issue-ID: DMAAP-820 Signed-off-by: Surendra Reddy Katam --- src/main/java/com/att/dmf/mr/utils/ConfigurationReader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/com') diff --git a/src/main/java/com/att/dmf/mr/utils/ConfigurationReader.java b/src/main/java/com/att/dmf/mr/utils/ConfigurationReader.java index fdf2d28..ab74e9c 100644 --- a/src/main/java/com/att/dmf/mr/utils/ConfigurationReader.java +++ b/src/main/java/com/att/dmf/mr/utils/ConfigurationReader.java @@ -164,9 +164,9 @@ public class ConfigurationReader { fMetrics.toJson(); fMetrics.setupCambriaSender(); // add the admin authenticator - // final String adminSecret = settings.getString ( CambriaConstants.kSetting_AdminSecret, null ); + final String adminSecret = com.att.ajsc.filemonitor.AJSCPropertiesMap.getProperty(CambriaConstants.msgRtr_prop,CambriaConstants.kSetting_AdminSecret); - //adminSecret = "fe3cCompound"; + if ( adminSecret != null && adminSecret.length () > 0 ) { try -- cgit 1.2.3-korg