summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap
diff options
context:
space:
mode:
authorDriptaroop Das <driptaroop.das@in.ibm.com>2019-01-30 13:47:55 +0530
committerDriptaroop Das <driptaroop.das@in.ibm.com>2019-01-30 13:48:30 +0530
commit78ccfccfda688df2e1987533582c193f442589cd (patch)
tree0761284d7682ad71b43f4b3baa33e1c92d22289b /src/main/java/org/onap
parentb1812207d5f27a299b519aa213fd175043ae2b19 (diff)
MirrorMaker.java - Multiple Sonar Fixes
MirrorMaker.java - Multiple Sonar Fixes Issue-ID: DMAAP-1012 Change-Id: Ie79c79f977dc869bfcbb0d7eaf6ffe8eaa3fc7b4 Signed-off-by: Driptaroop Das <driptaroop.das@in.ibm.com>
Diffstat (limited to 'src/main/java/org/onap')
-rw-r--r--src/main/java/org/onap/dmaap/dbcapi/model/MirrorMaker.java12
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++;
}