aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorSurendra Reddy Katam <SK00524980@techmahindra.com>2019-01-24 11:54:11 +0530
committerSurendra Reddy Katam <SK00524980@techmahindra.com>2019-01-24 11:54:43 +0530
commit64986f72ea27cc757612ccba38c628b6089119fa (patch)
treea863e17cf0090d2e7060df35d5cf028bc62874d4 /src/main
parent64465dad905ee3f636f5b5df8349eec8c263f1f1 (diff)
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 <SK00524980@techmahindra.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/onap/dmaap/mr/client/impl/MRConsumerImpl.java2
1 files changed, 1 insertions, 1 deletions
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<String> msgs = new LinkedList<String>();
+ final LinkedList<String> msgs = new LinkedList<>();
MRConsumerResponse mrConsumerResponse = new MRConsumerResponse();
try {
if (ProtocolTypeConstants.DME2.getValue().equalsIgnoreCase(protocolFlag)) {