aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/att/nsa
diff options
context:
space:
mode:
authorSurendra Reddy Katam <SK00524980@techmahindra.com>2018-08-23 16:45:36 +0530
committerSurendra Reddy Katam <SK00524980@techmahindra.com>2018-08-23 16:45:36 +0530
commit476332cc4a86aada98798c23f6f48b0df6307375 (patch)
tree46f9790b54445bfc51117455fd5188b30b3e1e0a /src/main/java/com/att/nsa
parentd122770583ca82afa98dd325d479d2caa97b6dbc (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-MbUO32hFUzlqc5g5&resolved=false&severities=MAJOR Location: src/main/java/com/att/nsa/mr/test/support/MRBatchingPublisherMock.java Line No- L54 L88 L154 L178 Change-Id: I74e590275efd6221f6395a9a28d4e73a0bb643a4 Issue-ID: DMAAP-633 Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
Diffstat (limited to 'src/main/java/com/att/nsa')
-rw-r--r--src/main/java/com/att/nsa/mr/test/support/MRBatchingPublisherMock.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/att/nsa/mr/test/support/MRBatchingPublisherMock.java b/src/main/java/com/att/nsa/mr/test/support/MRBatchingPublisherMock.java
index 3c123b1..56bec36 100644
--- a/src/main/java/com/att/nsa/mr/test/support/MRBatchingPublisherMock.java
+++ b/src/main/java/com/att/nsa/mr/test/support/MRBatchingPublisherMock.java
@@ -61,7 +61,7 @@ public class MRBatchingPublisherMock implements MRBatchingPublisher
public MRBatchingPublisherMock ()
{
- fCaptures = new LinkedList<Entry> ();
+ fCaptures = new LinkedList<> ();
}
public interface Listener
@@ -85,7 +85,7 @@ public class MRBatchingPublisherMock implements MRBatchingPublisher
public List<Entry> getCaptures ( MessageFilter filter )
{
- final LinkedList<Entry> result = new LinkedList<Entry> ();
+ final LinkedList<Entry> result = new LinkedList<> ();
for ( Entry capture : fCaptures )
{
if ( filter.match ( capture.fMessage ) )
@@ -151,7 +151,7 @@ public class MRBatchingPublisherMock implements MRBatchingPublisher
@Override
public List<message> close ( long timeout, TimeUnit timeoutUnits )
{
- return new LinkedList<message> ();
+ return new LinkedList<> ();
}
@Override
@@ -175,7 +175,7 @@ public class MRBatchingPublisherMock implements MRBatchingPublisher
}
private final LinkedList<Entry> fCaptures;
- private LinkedList<Listener> fListeners = new LinkedList<Listener> ();
+ private LinkedList<Listener> fListeners = new LinkedList<> ();
@Override
public MRPublisherResponse sendBatchWithResponse() {
// TODO Auto-generated method stub