Sonar major issues 73/61973/1
authorSurendra Reddy Katam <SK00524980@techmahindra.com>
Thu, 23 Aug 2018 05:49:16 +0000 (11:19 +0530)
committerSurendra Reddy Katam <SK00524980@techmahindra.com>
Thu, 23 Aug 2018 05:49:16 +0000 (11:19 +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-MbU432hFUzlqc5hp&resolved=false&severities=MAJOR
Location:
src/main/java/com/att/nsa/mr/tools/MRCommandContext.java
Line No- L39 L65

Change-Id: Ia158fb6890cfd5e5d8675ee144ca3119e097cb89
Issue-ID: DMAAP-630
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
src/main/java/com/att/nsa/mr/tools/MRCommandContext.java

index 8cc84ef..e512769 100644 (file)
@@ -36,7 +36,7 @@ public class MRCommandContext implements CommandContext
                fApiKey = null;
                fApiPwd = null;
 
-               fCluster = new LinkedList<String> ();
+               fCluster = new LinkedList<> ();
                fCluster.add ( "localhost" );
        }
 
@@ -62,7 +62,7 @@ public class MRCommandContext implements CommandContext
 
        public Collection<String> getCluster ()
        {
-               return new LinkedList<String> ( fCluster );
+               return new LinkedList<> ( fCluster );
        }
 
        public void clearCluster ()