From 803f0ba5d90637dbdc02d7f7665051fb8d841c5e Mon Sep 17 00:00:00 2001 From: Swapnali Pode Date: Fri, 2 Feb 2018 15:06:00 +0530 Subject: Remove useless assignment to variable Remove this useless assignment to local variable messages EventBusConsumer.java:L109 Sonar link: https://sonar.onap.org/component_issues/index?id=org.onap.aai.router-core%3Arouter-core#resolved=false|severities=MAJOR Location: src/main/java/org/onap/aai/event/EventBusConsumer.java Change-Id: I2102de2690e4bf028fe74d562ba0aff445ede7b7 Issue-ID: AAI-710 Signed-off-by: Swapnali Pode --- src/main/java/org/onap/aai/event/EventBusConsumer.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/org/onap/aai/event/EventBusConsumer.java b/src/main/java/org/onap/aai/event/EventBusConsumer.java index 2da879d..5e54d3b 100644 --- a/src/main/java/org/onap/aai/event/EventBusConsumer.java +++ b/src/main/java/org/onap/aai/event/EventBusConsumer.java @@ -106,9 +106,7 @@ public class EventBusConsumer extends ScheduledPollConsumer { int processCount = 0; - Iterable messages = null; - - messages = consumer.fetch(); + Iterable messages = consumer.fetch(); String topic = endpoint.getEventTopic(); -- cgit 1.2.3-korg