aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com
diff options
context:
space:
mode:
authorvarun gudisena <vg411h@att.com>2018-03-28 17:19:42 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-28 17:19:42 +0000
commit39459b8cb5faca17bfc110a038f44b6d0f44a8d2 (patch)
tree74d8d97fc925ef49b270e7a158890f9c4ffe3d53 /src/main/java/com
parent8da3d7e089d1a8d4bd89715fa5c61b94e39459b3 (diff)
parent4314eea96946e72d296fca500b4a17168af58caf (diff)
Merge "Sonar major issues"
Diffstat (limited to 'src/main/java/com')
-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 4701a1f..cf42907 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
@@ -319,7 +319,7 @@ public class MRBatchPublisher implements MRBatchingPublisher
fReadLock.lock ();
try
{
- if ( fNextBatch.size () > 0 )
+ if ( fNextBatch.isEmpty() )
{
final long nowMs = System.currentTimeMillis ();
shouldSend = ( force || fNextBatch.size() >= fMaxBatchSize );