MR_Cluster.java : Fixed sonar issue 93/63393/1
authorArundathi Patil <arundpil@in.ibm.com>
Wed, 29 Aug 2018 06:56:56 +0000 (12:26 +0530)
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>
Wed, 29 Aug 2018 06:57:08 +0000 (12:27 +0530)
Fixed sonar issue, change the condition so that it does not always
evaluate to false

Issue-ID: DMAAP-665
Change-Id: Id3b09ec2a596cfc1d2115a8b266e4789bc82ef38
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
src/main/java/org/onap/dmaap/dbcapi/model/MR_Cluster.java

index 166fc21..06b6194 100644 (file)
@@ -48,17 +48,17 @@ public class MR_Cluster extends DmaapObject {
        private static  String defaultTargetReplicationPort;
        
        private static void setDefaults() {
-               boolean been_here = false;
+               /* boolean been_here = false;
                if ( been_here ) {
                        return;
-               }
+               } */
                DmaapConfig dc = (DmaapConfig)DmaapConfig.getConfig();
                defaultTopicProtocol = dc.getProperty("MR.TopicProtocol", "https");
                defaultTopicPort = dc.getProperty( "MR.TopicPort", "3905");
                defaultReplicationGroup = dc.getProperty( "MR.ReplicationGroup", "" );
                defaultSourceReplicationPort = dc.getProperty( "MR.SourceReplicationPort", "2181");
                defaultTargetReplicationPort = dc.getProperty( "MR.TargetReplicationPort", "9092");
-               been_here = true;
+               // been_here = true;
        }