summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/att/nsa/mr/client/MRClientBuilders.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/mr/client/MRClientBuilders.java b/src/main/java/com/att/nsa/mr/client/MRClientBuilders.java
index 177fd30..c7707f1 100644
--- a/src/main/java/com/att/nsa/mr/client/MRClientBuilders.java
+++ b/src/main/java/com/att/nsa/mr/client/MRClientBuilders.java
@@ -235,7 +235,7 @@ public class MRClientBuilders
*/
public MRBatchingPublisher build ()
{
- if ( fHosts == null || fHosts.size() == 0 || fTopic == null )
+ if ( fHosts == null || fHosts.isEmpty() || fTopic == null )
{
throw new IllegalArgumentException ( "You must provide at least one host and a topic name." );
}