diff options
author | Surendra Reddy Katam <SK00524980@techmahindra.com> | 2018-08-09 15:47:10 +0530 |
---|---|---|
committer | Surendra Reddy Katam <SK00524980@techmahindra.com> | 2018-08-09 15:47:10 +0530 |
commit | ec9c4e988f7f0090575d9e3600e479e412dfd676 (patch) | |
tree | 850c8e444d65cebd5047b4db6f5ce8a3b607e940 /src/main/java/com/att | |
parent | f61a449fab4957dacc498dabb8181206b4714b3b (diff) |
Sonar major issues
Use isEmpty() to check whether the collection is empty or not
Sonar Link:
https://sonar.onap.org/project/issues?assignees=surendraReddy&id=org.onap.dmaap.messagerouter.dmaapclient%3AdmaapClient&open=AV4-MbQb32hFUzlqc5Zk&resolved=false&severities=MAJOR
Location:
src/main/java/com/att/nsa/mr/client/impl/MRBatchPublisher.java
Line No-137
Change-Id: Ia3464cd19af992d4d48885e5a2dc4a75b726f9e7
Issue-ID: DMAAP-574
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
Diffstat (limited to 'src/main/java/com/att')
-rw-r--r-- | src/main/java/com/att/nsa/mr/client/impl/MRBatchPublisher.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/mr/client/impl/MRBatchPublisher.java b/src/main/java/com/att/nsa/mr/client/impl/MRBatchPublisher.java index 6008251..7d1e396 100644 --- a/src/main/java/com/att/nsa/mr/client/impl/MRBatchPublisher.java +++ b/src/main/java/com/att/nsa/mr/client/impl/MRBatchPublisher.java @@ -134,7 +134,7 @@ public class MRBatchPublisher implements MRBatchingPublisher @Override public int send ( Collection<message> msgs ) throws IOException { - if ( msgs.size() > 0 ) + if ( msgs.isEmpty() ) { fSender.queue ( msgs ); } |