diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/onap/dmaap/mr/client/MRClientBuilders.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/onap/dmaap/mr/client/MRClientBuilders.java b/src/main/java/org/onap/dmaap/mr/client/MRClientBuilders.java index 60e0666..2c3101b 100644 --- a/src/main/java/org/onap/dmaap/mr/client/MRClientBuilders.java +++ b/src/main/java/org/onap/dmaap/mr/client/MRClientBuilders.java @@ -149,7 +149,7 @@ public class MRClientBuilders */ public MRConsumer 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." ); } |