From 502c58dadb0943d4727b474bbdcce0024a15f83d Mon Sep 17 00:00:00 2001 From: Surendra Reddy Katam Date: Wed, 23 Jan 2019 10:40:07 +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-MbO532hFUzlqc5Vm&resolved=false&rules=squid%3AS2293&severities=MAJOR Location: src/main/java/org/onap/dmaap/mr/client/MRClientBuilders.java Line No-211 Change-Id: I18ce520c4f3291d1376117268f119fbfa46c1a45 Issue-ID: DMAAP-990 Signed-off-by: Surendra Reddy Katam --- src/main/java/org/onap/dmaap/mr/client/MRClientBuilders.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/org/onap') diff --git a/src/main/java/org/onap/dmaap/mr/client/MRClientBuilders.java b/src/main/java/org/onap/dmaap/mr/client/MRClientBuilders.java index 2c3101b..abf3736 100644 --- a/src/main/java/org/onap/dmaap/mr/client/MRClientBuilders.java +++ b/src/main/java/org/onap/dmaap/mr/client/MRClientBuilders.java @@ -208,7 +208,7 @@ public class MRClientBuilders */ public PublisherBuilder usingHosts ( String[] hostSet ) { - final TreeSet hosts = new TreeSet (); + final TreeSet hosts = new TreeSet<> (); for ( String hp : hostSet ) { hosts.add ( hp ); -- cgit 1.2.3-korg