Sonar majior issues 68/76168/1
authorSurendra Reddy Katam <SK00524980@techmahindra.com>
Wed, 23 Jan 2019 05:33:29 +0000 (11:03 +0530)
committerSurendra Reddy Katam <SK00524980@techmahindra.com>
Wed, 23 Jan 2019 05:33:29 +0000 (11:03 +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-MbQH32hFUzlqc5YK&resolved=false&rules=squid%3AS2293&severities=MAJOR
Location:
src/main/java/org/onap/dmaap/mr/client/impl/MRBaseClient.java
Line No-78

Change-Id: I3128c514cc10d9430afe06e1ebfe0916a9e1aac6
Issue-ID: DMAAP-991
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
src/main/java/org/onap/dmaap/mr/client/impl/MRBaseClient.java

index ecea21c..8ed7dd8 100644 (file)
@@ -75,7 +75,7 @@ public class MRBaseClient extends HttpClient implements MRClient {
                if (a == null)
                        return null;
 
-               final TreeSet<String> set = new TreeSet<String>();
+               final TreeSet<String> set = new TreeSet<>();
                for (int i = 0; i < a.length(); i++) {
                        set.add(a.getString(i));
                }