aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-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 00c8915..177fd30 100644
--- a/src/main/java/com/att/nsa/mr/client/MRClientBuilders.java
+++ b/src/main/java/com/att/nsa/mr/client/MRClientBuilders.java
@@ -362,7 +362,7 @@ public class MRClientBuilders
*/
public T build ()
{
- if ( fHosts == null || fHosts.size() == 0 )
+ if ( fHosts.isEmpty() )
{
throw new IllegalArgumentException ( "You must provide at least one host and a topic name." );
}