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>
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;
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 );