diff options
author | Surendra Reddy Katam <SK00524980@techmahindra.com> | 2018-08-23 11:43:43 +0530 |
---|---|---|
committer | Surendra Reddy Katam <SK00524980@techmahindra.com> | 2018-08-23 11:43:43 +0530 |
commit | 63a862649083f6e02b12615fd7d1bc1c34b3be3b (patch) | |
tree | 6a439b9ab851416564010534712f38d0a3c615d8 /src/main/java/com | |
parent | 0e2456e1cf97d60fc7a8ed736d781e9901304f3e (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-MbUW32hFUzlqc5hE&resolved=false&severities=MAJOR
Location:
src/main/java/com/att/nsa/mr/test/support/MRConsumerMock.java
Line No- L50 L87 L117 L129
Change-Id: Iaf782f51002731df3e7b64b0b71d76057ab416d0
Issue-ID: DMAAP-631
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/att/nsa/mr/test/support/MRConsumerMock.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/att/nsa/mr/test/support/MRConsumerMock.java b/src/main/java/com/att/nsa/mr/test/support/MRConsumerMock.java index 7d0e20c..c731030 100644 --- a/src/main/java/com/att/nsa/mr/test/support/MRConsumerMock.java +++ b/src/main/java/com/att/nsa/mr/test/support/MRConsumerMock.java @@ -47,7 +47,7 @@ public class MRConsumerMock implements MRConsumer fWaitMs = waitMs; fStatusCode = statusCode; fStatusMsg = null; - fMsgs = new LinkedList<String> ( msgs ); + fMsgs = new LinkedList<> ( msgs ); } public Entry ( long waitMs, int statusCode, String statusMsg ) @@ -84,7 +84,7 @@ public class MRConsumerMock implements MRConsumer public MRConsumerMock () { - fReplies = new LinkedList<Entry> (); + fReplies = new LinkedList<> (); } @Override @@ -114,7 +114,7 @@ public class MRConsumerMock implements MRConsumer public void addDelayedMsg ( long delay, String msg ) { - final LinkedList<String> list = new LinkedList<String> (); + final LinkedList<String> list = new LinkedList<> (); list.add ( msg ); add ( new Entry ( delay, 200, list ) ); } @@ -126,7 +126,7 @@ public class MRConsumerMock implements MRConsumer public void addDelayedMsgGroup ( long delay, List<String> msgs ) { - final LinkedList<String> list = new LinkedList<String> ( msgs ); + final LinkedList<String> list = new LinkedList<> ( msgs ); add ( new Entry ( delay, 200, list ) ); } |