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

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

index 9051b99..04b26d5 100644 (file)
@@ -51,7 +51,7 @@ public class MRMetaClient extends MRBaseClient implements MRTopicManager, MRIden
        @Override
        public Set<String> getTopics () throws IOException
        {
-               final TreeSet<String> set = new TreeSet<String> ();
+               final TreeSet<String> set = new TreeSet<> ();
                try
                {
                        final JSONObject topicSet = get ( "/topics" );