summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2020-08-10 14:47:08 +0000
committerGerrit Code Review <gerrit@onap.org>2020-08-10 14:47:08 +0000
commit69db35c582df773c5559ee569f9ba22c6bcb69d8 (patch)
treef7df858dc04a9dd55996b6ba784e82d4e1f3b348 /plugins
parent09212e0d7326c2933ed437ee36188a241b8cf900 (diff)
parentdc2b85e4ae6db95a0c09494a928ee6fbdf95594e (diff)
Merge "Sonar Fixes"
Diffstat (limited to 'plugins')
-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.java2
1 files changed, 1 insertions, 1 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 b570c4021..f7ff14744 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
@@ -80,7 +80,7 @@ public class ApexKafkaProducer extends ApexPluginsEventProducer {
}
}
- kafkaProducer.send(new ProducerRecord<String, Object>(kafkaProducerProperties.getProducerTopic(), name, event));
+ kafkaProducer.send(new ProducerRecord<>(kafkaProducerProperties.getProducerTopic(), name, event));
if (LOGGER.isTraceEnabled()) {
LOGGER.trace("event sent from engine using {} to topic {} : {} ", this.name,
kafkaProducerProperties.getProducerTopic(), event);