Sonar major issues
[dmaap/messagerouter/msgrtr.git] / src / main / java / com / att / dmf / mr / backends / kafka / KafkaPublisher.java
index dc4bcd5..9543828 100644 (file)
@@ -178,10 +178,10 @@ public class KafkaPublisher implements Publisher {
                        throws IOException {
                log.info("sending " + msgs.size() + " events to [" + topic + "]");
 try{
-               final List<ProducerRecord<String, String>> kms = new ArrayList<ProducerRecord<String, String>>(msgs.size());
+               final List<ProducerRecord<String, String>> kms = new ArrayList<>(msgs.size());
                        for (message o : msgs) {
                        
-                       final ProducerRecord<String, String> data = new ProducerRecord<String, String>(topic, o.getKey(), o.toString());
+                       final ProducerRecord<String, String> data = new ProducerRecord<>(topic, o.getKey(), o.toString());
                        
                
                try {