From 59280c57809ac4972e5fa69370520ec8871a573d Mon Sep 17 00:00:00 2001 From: Mike Keesey Date: Fri, 13 Jul 2012 15:39:57 -0600 Subject: [PATCH] Fixed isEmpty() on TreeSet, which actually returned !isEmpty(). --- classpath/java/util/TreeSet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classpath/java/util/TreeSet.java b/classpath/java/util/TreeSet.java index 1768d64843..e3d33975fe 100644 --- a/classpath/java/util/TreeSet.java +++ b/classpath/java/util/TreeSet.java @@ -117,7 +117,7 @@ public class TreeSet extends AbstractSet implements Collection { } public boolean isEmpty() { - return set.size() != 0; + return set.size() == 0; } public boolean contains(Object value) {