diff options
author | liamfallon <liam.fallon@est.tech> | 2020-03-11 21:29:17 +0000 |
---|---|---|
committer | liamfallon <liam.fallon@est.tech> | 2020-03-11 21:29:21 +0000 |
commit | 690495d32c6033741d7a7c2413476f7ba88e2825 (patch) | |
tree | 554cc03ef1c832bf8e488d19cd5ffb3021a35a6e /plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src/main | |
parent | 4e6bd1d02227591d1517245f5bda690ec4eb770e (diff) |
Fix minor checkstyle/eclipse warnings
Some minor checkstyle and eclipse warnings have crept into the code in
the last few weeks. This review cleams them up.
Issue-ID: POLICY-1913
Change-Id: Ib5f103bc28c71a6c4db05ea05719eff41bb38914
Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src/main')
-rw-r--r-- | plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src/main/java/org/onap/policy/apex/plugins/event/carrier/kafka/ApexKafkaProducer.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src/main/java/org/onap/policy/apex/plugins/event/carrier/kafka/ApexKafkaProducer.java b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src/main/java/org/onap/policy/apex/plugins/event/carrier/kafka/ApexKafkaProducer.java index bb5398ceb..95cf4ad8b 100644 --- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src/main/java/org/onap/policy/apex/plugins/event/carrier/kafka/ApexKafkaProducer.java +++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src/main/java/org/onap/policy/apex/plugins/event/carrier/kafka/ApexKafkaProducer.java @@ -21,8 +21,6 @@ package org.onap.policy.apex.plugins.event.carrier.kafka; -import java.util.EnumMap; -import java.util.Map; import java.util.Properties; import org.apache.kafka.clients.producer.KafkaProducer; @@ -30,10 +28,7 @@ import org.apache.kafka.clients.producer.Producer; import org.apache.kafka.clients.producer.ProducerRecord; import org.onap.policy.apex.service.engine.event.ApexEventException; import org.onap.policy.apex.service.engine.event.ApexPluginsEventProducer; -import org.onap.policy.apex.service.engine.event.PeeredReference; -import org.onap.policy.apex.service.engine.event.SynchronousEventCache; import org.onap.policy.apex.service.parameters.eventhandler.EventHandlerParameters; -import org.onap.policy.apex.service.parameters.eventhandler.EventHandlerPeeredMode; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -81,8 +76,8 @@ public class ApexKafkaProducer extends ApexPluginsEventProducer { // Kick off the Kafka producer kafkaProducer = new KafkaProducer<>(kafkaProducerProperties.getKafkaProducerProperties()); if (LOGGER.isDebugEnabled()) { - LOGGER.debug("event producer " + this.name + " is ready to send to topics: " - + kafkaProducerProperties.getProducerTopic()); + LOGGER.debug("event producer {} is ready to send to topics: {}", this.name, + kafkaProducerProperties.getProducerTopic()); } } |