summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorRam Koya <rk541m@att.com>2018-08-16 16:36:52 +0000
committerGerrit Code Review <gerrit@onap.org>2018-08-16 16:36:52 +0000
commit738e22da87b65c4168bba2c8ce51dcf7b1cce9f6 (patch)
tree245f4c9a1a4977a8b6d208f1417724c0da7669e0 /src/main/java
parent8af046d47bc8e36eb3012b54431ce738a35ef8db (diff)
parent2374c15b30a1ebb4bd1d6960972a55d749167c95 (diff)
Merge "Sonar major issues"
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java b/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java
index 741705f..ef0d13a 100644
--- a/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java
+++ b/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java
@@ -235,7 +235,7 @@ public class MRSimplerBatchPublisher extends MRBaseClient implements MRBatchingP
private synchronized boolean shouldSendNow() {
boolean shouldSend = false;
- if (fPending.size() > 0) {
+ if (fPending.isEmpty()) {
final long nowMs = Clock.now();
shouldSend = (fPending.size() >= fMaxBatchSize);