diff options
author | Arundathi Patil <arundpil@in.ibm.com> | 2018-08-29 12:26:56 +0530 |
---|---|---|
committer | IBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com> | 2018-08-29 12:27:08 +0530 |
commit | abb09abae2d53b752aed72eb36449c432bf8199e (patch) | |
tree | 39da52e507851548936a741bd109e21a444be217 | |
parent | 987cb492db3062fb19fbfe73e9ebab91390536d8 (diff) |
MR_Cluster.java : Fixed sonar issue
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>
-rw-r--r-- | src/main/java/org/onap/dmaap/dbcapi/model/MR_Cluster.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/onap/dmaap/dbcapi/model/MR_Cluster.java b/src/main/java/org/onap/dmaap/dbcapi/model/MR_Cluster.java index 166fc21..06b6194 100644 --- a/src/main/java/org/onap/dmaap/dbcapi/model/MR_Cluster.java +++ b/src/main/java/org/onap/dmaap/dbcapi/model/MR_Cluster.java @@ -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; } |