From: Surendra Reddy Katam Date: Thu, 23 Aug 2018 05:49:16 +0000 (+0530) Subject: Sonar major issues X-Git-Tag: 1.1.7~5 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=dmaap%2Fmessagerouter%2Fdmaapclient.git;a=commitdiff_plain;h=0e2456e1cf97d60fc7a8ed736d781e9901304f3e Sonar major 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-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 --- diff --git a/src/main/java/com/att/nsa/mr/tools/MRCommandContext.java b/src/main/java/com/att/nsa/mr/tools/MRCommandContext.java index 8cc84ef..e512769 100644 --- a/src/main/java/com/att/nsa/mr/tools/MRCommandContext.java +++ b/src/main/java/com/att/nsa/mr/tools/MRCommandContext.java @@ -36,7 +36,7 @@ public class MRCommandContext implements CommandContext fApiKey = null; fApiPwd = null; - fCluster = new LinkedList (); + fCluster = new LinkedList<> (); fCluster.add ( "localhost" ); } @@ -62,7 +62,7 @@ public class MRCommandContext implements CommandContext public Collection getCluster () { - return new LinkedList ( fCluster ); + return new LinkedList<> ( fCluster ); } public void clearCluster ()