Sonar majior issues 49/76249/1
authorSurendra Reddy Katam <SK00524980@techmahindra.com>
Thu, 24 Jan 2019 06:24:11 +0000 (11:54 +0530)
committerSurendra Reddy Katam <SK00524980@techmahindra.com>
Thu, 24 Jan 2019 06:24:43 +0000 (11:54 +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-MbQz32hFUzlqc5aO&resolved=false&rules=squid%3AS2293&severities=MAJOR
Location:
src/main/java/org/onap/dmaap/mr/client/impl/MRConsumerImpl.java
Line No-244

Change-Id: I2b6debccff79fa50ea58369f5f90c327b854a27a
Issue-ID: DMAAP-1003
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
src/main/java/org/onap/dmaap/mr/client/impl/MRConsumerImpl.java

index a1a52aa..d224bdf 100644 (file)
@@ -241,7 +241,7 @@ public class MRConsumerImpl extends MRBaseClient implements MRConsumer {
 
     @Override
     public MRConsumerResponse fetchWithReturnConsumerResponse(int timeoutMs, int limit) {
-        final LinkedList<String> msgs = new LinkedList<String>();
+        final LinkedList<String> msgs = new LinkedList<>();
         MRConsumerResponse mrConsumerResponse = new MRConsumerResponse();
         try {
             if (ProtocolTypeConstants.DME2.getValue().equalsIgnoreCase(protocolFlag)) {