aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/att/nsa/mr/client
diff options
context:
space:
mode:
authorRam Koya <rk541m@att.com>2018-08-13 17:27:13 +0000
committerGerrit Code Review <gerrit@onap.org>2018-08-13 17:27:13 +0000
commitf2f14cc90640a81b75f607fb09a9cfe2633abe6f (patch)
tree4f423d860b3fc3e423bfcced51c73e7120af9d6c /src/main/java/com/att/nsa/mr/client
parentbee7c629744e260b3fe799e19df315e8572e67ae (diff)
parentbf9c3366bee0400d6ee4c9d7de3fb2613afc445e (diff)
Merge "Sonar major issues"
Diffstat (limited to 'src/main/java/com/att/nsa/mr/client')
-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 4400045..741705f 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
@@ -177,7 +177,7 @@ public class MRSimplerBatchPublisher extends MRBaseClient implements MRBatchingP
public void close() {
try {
final List<message> remains = close(Long.MAX_VALUE, TimeUnit.MILLISECONDS);
- if (remains.size() > 0) {
+ if (remains.isEmpty()) {
getLog().warn("Closing publisher with " + remains.size() + " messages unsent. "
+ "Consider using MRBatchingPublisher.close( long timeout, TimeUnit timeoutUnits ) to recapture unsent messages on close.");
}