summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorSurendra Reddy Katam <SK00524980@techmahindra.com>2018-09-21 15:43:49 +0530
committerSurendra Reddy Katam <SK00524980@techmahindra.com>2018-09-21 15:43:49 +0530
commit51659cfd123fab4c7a5ce25cc300182c8a9a0d20 (patch)
tree4c35077744bd8cd4ddc725bcff16d677d4c582b1 /src/main
parent5a9c25120a7efd78e26cd35417ff15aadd8f3b04 (diff)
Sonar Major issues
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&open=AWU41Wi2wGn37JfbyHxc&resolved=false&severities=MAJOR Location: src/main/java/com/att/dmf/mr/service/impl/EventsServiceImpl.java Line No-L526 L600 L603 Change-Id: I391aa522b7d288815248c57fd3a58280bc474aee Issue-ID: DMAAP-812 Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/att/dmf/mr/service/impl/EventsServiceImpl.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/att/dmf/mr/service/impl/EventsServiceImpl.java b/src/main/java/com/att/dmf/mr/service/impl/EventsServiceImpl.java
index 5565704..a889103 100644
--- a/src/main/java/com/att/dmf/mr/service/impl/EventsServiceImpl.java
+++ b/src/main/java/com/att/dmf/mr/service/impl/EventsServiceImpl.java
@@ -523,7 +523,7 @@ public class EventsServiceImpl implements EventsService {
final int sizeNow = batch.size();
if (sizeNow > 0) {
// ctx.getConfigReader().getfPublisher().sendBatchMessage(topic,
- // kms);
+
// kms.clear();
ctx.getConfigReader().getfPublisher().sendBatchMessageNew(topic, pms);
pms.clear();
@@ -597,10 +597,10 @@ public class EventsServiceImpl implements EventsService {
if (null != evenlen)
maxEventBatch = Long.parseLong(evenlen);
// final long maxEventBatch =
- // ctx.getConfigReader().getSettings().getLong(BATCH_LENGTH, 1024 * 16);
+
final LinkedList<Publisher.message> batch = new LinkedList<Publisher.message>();
// final ArrayList<KeyedMessage<String, String>> kms = new
- // ArrayList<KeyedMessage<String, String>>();
+
final ArrayList<ProducerRecord<String, String>> pms = new ArrayList<ProducerRecord<String, String>>();
Publisher.message m = null;
int messageSequence = 1;