Sonar Major issues 67/65667/1
authorSurendra Reddy Katam <SK00524980@techmahindra.com>
Tue, 11 Sep 2018 06:21:04 +0000 (11:51 +0530)
committerSurendra Reddy Katam <SK00524980@techmahindra.com>
Tue, 11 Sep 2018 06:21:04 +0000 (11:51 +0530)
 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&resolved=false&severities=MAJOR
Location:
src/main/java/com/att/dmf/mr/utils/ConfigurationReader.java
Line No- L140 L144 L151

Change-Id: Ib3e5f8c610c9d66b24fc4cb09cac085c9c1939d5
Issue-ID: DMAAP-765
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
src/main/java/com/att/dmf/mr/utils/ConfigurationReader.java

index e56a2e4..fdf2d28 100644 (file)
@@ -137,18 +137,18 @@ public class ConfigurationReader {
                ConfigurationReader.curator = curator;
                this.fConsumerFactory = fConsumerFactory;
                this.fMetaBroker = fMetaBroker;
-               //System.out.println("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSs  " + fMetaBroker);
+               
                this.q = q;
                this.mmb = mmb;
                this.fApiKeyDb = fApiKeyDb;
-               /* this.fTranDb = fTranDb; */
+               
                this.fSecurityManager = fSecurityManager;
                
                long allowedtimeSkewMs=600000L;
                String strallowedTimeSkewM= com.att.ajsc.filemonitor.AJSCPropertiesMap.getProperty(CambriaConstants.msgRtr_prop,"authentication.allowedTimeSkewMs");
                if(null!=strallowedTimeSkewM)allowedtimeSkewMs= Long.parseLong(strallowedTimeSkewM);
                                
-       //      boolean requireSecureChannel = true;
+       
                //String strrequireSecureChannel= com.att.ajsc.filemonitor.AJSCPropertiesMap.getProperty(CambriaConstants.msgRtr_prop,"aauthentication.requireSecureChannel");
                //if(strrequireSecureChannel!=null)requireSecureChannel=Boolean.parseBoolean(strrequireSecureChannel);
                //this.nsaSecurityManager = new NsaAuthenticatorService<NsaSimpleApiKey>(this.fApiKeyDb, settings.getLong("authentication.allowedTimeSkewMs", 600000L), settings.getBoolean("authentication.requireSecureChannel", true));