From 64986f72ea27cc757612ccba38c628b6089119fa Mon Sep 17 00:00:00 2001 From: Surendra Reddy Katam Date: Thu, 24 Jan 2019 11:54:11 +0530 Subject: Sonar majior 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-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 --- src/main/java/org/onap/dmaap/mr/client/impl/MRConsumerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/java/org/onap/dmaap/mr/client/impl/MRConsumerImpl.java b/src/main/java/org/onap/dmaap/mr/client/impl/MRConsumerImpl.java index a1a52aa..d224bdf 100644 --- a/src/main/java/org/onap/dmaap/mr/client/impl/MRConsumerImpl.java +++ b/src/main/java/org/onap/dmaap/mr/client/impl/MRConsumerImpl.java @@ -241,7 +241,7 @@ public class MRConsumerImpl extends MRBaseClient implements MRConsumer { @Override public MRConsumerResponse fetchWithReturnConsumerResponse(int timeoutMs, int limit) { - final LinkedList msgs = new LinkedList(); + final LinkedList msgs = new LinkedList<>(); MRConsumerResponse mrConsumerResponse = new MRConsumerResponse(); try { if (ProtocolTypeConstants.DME2.getValue().equalsIgnoreCase(protocolFlag)) { -- cgit 1.2.3-korg