From 211967cf8abd6eb0c39c19b52dc334f0a2359558 Mon Sep 17 00:00:00 2001 From: Surendra Reddy Katam Date: Tue, 29 Jan 2019 11:37:24 +0530 Subject: Sonar majior issues Replace the type specification in this constructor call with the diamond operator Sonar Link: https://sonar.onap.org/project/issues?assignees=surendraReddy&id=org.onap.dmaap.messagerouter.dmaapclient%3AdmaapClient&open=AV4-MbPM32hFUzlqc5Wq&resolved=false&rules=squid%3AS2293&severities=MAJOR Location: src/main/java/org/onap/dmaap/mr/client/MRClientFactory.java Line No-351 Change-Id: I729b24bff9c8652d368410e8126bfd8c48711b69 Issue-ID: DMAAP-1011 Signed-off-by: Surendra Reddy Katam --- src/main/java/org/onap/dmaap/mr/client/MRClientFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/org') diff --git a/src/main/java/org/onap/dmaap/mr/client/MRClientFactory.java b/src/main/java/org/onap/dmaap/mr/client/MRClientFactory.java index dc9d555..5c06383 100644 --- a/src/main/java/org/onap/dmaap/mr/client/MRClientFactory.java +++ b/src/main/java/org/onap/dmaap/mr/client/MRClientFactory.java @@ -348,7 +348,7 @@ public class MRClientFactory { */ public static MRBatchingPublisher createBatchingPublisher(String[] hostSet, String topic, int maxBatchSize, long maxAgeMs, boolean compress) { - final TreeSet hosts = new TreeSet(); + final TreeSet hosts = new TreeSet<>(); for (String hp : hostSet) { hosts.add(hp); } -- cgit 1.2.3-korg