diff options
author | Surendra Reddy Katam <SK00524980@techmahindra.com> | 2018-08-20 15:25:10 +0530 |
---|---|---|
committer | Surendra Reddy Katam <SK00524980@techmahindra.com> | 2018-08-20 15:25:10 +0530 |
commit | f4ed2e3730ec5c03e2ab9d3ba5b96d4169760344 (patch) | |
tree | c8a5fbc03869bfe7b11cf7acd02bb4f4d57cf283 /src | |
parent | 738e22da87b65c4168bba2c8ce51dcf7b1cce9f6 (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-MbTX32hFUzlqc5f3&resolved=false&severities=MAJOR
Location:
src/main/java/com/att/nsa/mr/test/clients/SampleConsumer.java
Line No- L44 L52
Change-Id: I3a2e2ce61aa27107bb4f70c22cd1b6fd5df6af21
Issue-ID: DMAAP-615
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/att/nsa/mr/test/clients/SampleConsumer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/att/nsa/mr/test/clients/SampleConsumer.java b/src/main/java/com/att/nsa/mr/test/clients/SampleConsumer.java index 56c8a4a..44e5205 100644 --- a/src/main/java/com/att/nsa/mr/test/clients/SampleConsumer.java +++ b/src/main/java/com/att/nsa/mr/test/clients/SampleConsumer.java @@ -41,7 +41,7 @@ public class SampleConsumer { final String topic = "com.att.app.dmaap.mr.testingTopic"; final String url = ( args.length > 1 ? args[1] : "localhost:8181" ); final String group = ( args.length > 2 ? args[2] :"grp" ); - /*final String id = ( args.length > 3 ? args[3] : "0" );*/ + final String id = ( args.length > 3 ? args[3] : "1" ); long count = 0; @@ -49,7 +49,7 @@ public class SampleConsumer { final long startMs = System.currentTimeMillis (); - final LinkedList<String> urlList = new LinkedList<String> (); + final LinkedList<String> urlList = new LinkedList<> (); for ( String u : url.split ( "," ) ) { urlList.add ( u ); |