diff options
-rw-r--r-- | src/main/java/com/att/nsa/mr/client/HostSelector.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/mr/client/HostSelector.java b/src/main/java/com/att/nsa/mr/client/HostSelector.java index 0dba1e7..63ef404 100644 --- a/src/main/java/com/att/nsa/mr/client/HostSelector.java +++ b/src/main/java/com/att/nsa/mr/client/HostSelector.java @@ -127,7 +127,7 @@ public class HostSelector workingSet.remove(be.getHost()); } - if (workingSet.size() == 0) + if (workingSet.isEmpty()) { log.warn("All hosts were blacklisted; reverting to full set of hosts."); workingSet.addAll(this.fBaseHosts); |