aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorSurendra Reddy Katam <SK00524980@techmahindra.com>2018-08-23 11:19:16 +0530
committerSurendra Reddy Katam <SK00524980@techmahindra.com>2018-08-23 11:19:16 +0530
commit0e2456e1cf97d60fc7a8ed736d781e9901304f3e (patch)
tree676b9436e6703e99613df7f18311b64eccf343f4 /src/main/java
parentb99cdb870a0cbd39d02ec46d43d9dbba288200ce (diff)
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 <SK00524980@techmahindra.com>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/att/nsa/mr/tools/MRCommandContext.java4
1 files changed, 2 insertions, 2 deletions
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<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 ()