summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSwapnali Pode <SP00501638@techmahindra.com>2018-02-02 15:06:00 +0530
committerSwapnali Pode <SP00501638@techmahindra.com>2018-02-02 15:08:39 +0530
commit803f0ba5d90637dbdc02d7f7665051fb8d841c5e (patch)
tree82d4204f285678c785468c3051d5dfd58beef1bf
parentd5b197fa4b9d1cbf3cf6c02499f422ef18d40809 (diff)
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 <SP00501638@techmahindra.com>
-rw-r--r--src/main/java/org/onap/aai/event/EventBusConsumer.java4
1 files changed, 1 insertions, 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<String> messages = null;
-
- messages = consumer.fetch();
+ Iterable<String> messages = consumer.fetch();
String topic = endpoint.getEventTopic();