Fixed isEmpty() on TreeSet, which actually returned !isEmpty().

This commit is contained in:
Mike Keesey 2012-07-13 15:39:57 -06:00
parent 8f0f3182de
commit 59280c5780

View File

@ -117,7 +117,7 @@ public class TreeSet<T> extends AbstractSet<T> implements Collection<T> {
}
public boolean isEmpty() {
return set.size() != 0;
return set.size() == 0;
}
public boolean contains(Object value) {