aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvarun gudisena <vg411h@att.com>2018-03-28 17:19:48 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-28 17:19:48 +0000
commit395cce70b67d683d5d0edd7de7ab097114c8041a (patch)
treeb4be392f0c916cc05898306acdb9408639b6ec07
parent39459b8cb5faca17bfc110a038f44b6d0f44a8d2 (diff)
parente8ba31faaaa50e45a232b27fa8832b8004f1bee3 (diff)
Merge "Sonar major issues"
-rw-r--r--src/main/java/com/att/nsa/mr/client/impl/MRBatchPublisher.java2
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 cf42907..02c3c69 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
@@ -413,7 +413,7 @@ public class MRBatchPublisher implements MRBatchingPublisher
private static boolean doSend ( LinkedList<TimestampedMessage> toSend, HttpClient client, String topic, boolean compress, Logger log )
{
// it's possible for this call to be made with an empty list. in this case, just return.
- if ( toSend.size() < 1 )
+ if ( toSend.isEmpty() )
{
return true;
}