From 51659cfd123fab4c7a5ce25cc300182c8a9a0d20 Mon Sep 17 00:00:00 2001 From: Surendra Reddy Katam Date: Fri, 21 Sep 2018 15:43:49 +0530 Subject: 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 --- src/main/java/com/att/dmf/mr/service/impl/EventsServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/com/att/dmf/mr/service') 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 batch = new LinkedList(); // final ArrayList> kms = new - // ArrayList>(); + final ArrayList> pms = new ArrayList>(); Publisher.message m = null; int messageSequence = 1; -- cgit 1.2.3-korg