Sonar majior issues 67/76167/1
authorSurendra Reddy Katam <SK00524980@techmahindra.com>
Wed, 23 Jan 2019 05:10:07 +0000 (10:40 +0530)
committerSurendra Reddy Katam <SK00524980@techmahindra.com>
Wed, 23 Jan 2019 05:10:07 +0000 (10:40 +0530)
 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 <SK00524980@techmahindra.com>
src/main/java/org/onap/dmaap/mr/client/MRClientBuilders.java

index 2c3101b..abf3736 100644 (file)
@@ -208,7 +208,7 @@ public class MRClientBuilders
          */
         public PublisherBuilder usingHosts ( String[] hostSet )
         {
-            final TreeSet<String> hosts = new TreeSet<String> ();
+            final TreeSet<String> hosts = new TreeSet<> ();
             for ( String hp : hostSet )
             {
                 hosts.add ( hp );