diff options
author | varun gudisena <varuneshwar.gudisena@att.com> | 2019-02-21 14:44:07 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-02-21 14:44:07 +0000 |
commit | b578ddffd8ce8a7eceebd7b4df6ab4a6a9f803ec (patch) | |
tree | a4a2e8b32d35a5c7c1fc3ca0d438e2cbfb5726fb /src/main/java/org | |
parent | 5eb10d9cfaa802e35174e99686f10510e8c7d54f (diff) | |
parent | 78ccfccfda688df2e1987533582c193f442589cd (diff) |
Merge "MirrorMaker.java - Multiple Sonar Fixes"
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/onap/dmaap/dbcapi/model/MirrorMaker.java | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/main/java/org/onap/dmaap/dbcapi/model/MirrorMaker.java b/src/main/java/org/onap/dmaap/dbcapi/model/MirrorMaker.java index e693afe..ab183d6 100644 --- a/src/main/java/org/onap/dmaap/dbcapi/model/MirrorMaker.java +++ b/src/main/java/org/onap/dmaap/dbcapi/model/MirrorMaker.java @@ -20,14 +20,10 @@ package org.onap.dmaap.dbcapi.model; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.Set; - -import org.apache.log4j.Logger; -import org.onap.dmaap.dbcapi.logging.DmaapbcLogMessageEnum; import org.onap.dmaap.dbcapi.service.MirrorMakerService; +import java.util.ArrayList; + public class MirrorMaker extends DmaapObject { @@ -58,7 +54,7 @@ public class MirrorMaker extends DmaapObject { sourceCluster = source; targetCluster = target; mmName = genKey(source, target); - topics = new ArrayList<String>(); + topics = new ArrayList<>(); } @@ -89,12 +85,10 @@ public class MirrorMaker extends DmaapObject { str.append( " \"name\": \"" + this.getMmName() + "\", \"whitelist\": \"" ); int numTargets = 0; - //for (ReplicationVector rv: vectors) { for (String rv: topics) { if ( numTargets > 0 ) { str.append( ","); } - //str.append( rv.getFqtn() ); str.append( rv ); numTargets++; } |