Updated the comment and made the instance member private.
Patch by: amitmanjhi
Review by: jat (desk review)
git-svn-id: https://google-web-toolkit.googlecode.com/svn/releases/1.6@4272 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/super/com/google/gwt/emul/java/util/TreeSet.java b/user/super/com/google/gwt/emul/java/util/TreeSet.java
index 496e87d..1d1fedc 100644
--- a/user/super/com/google/gwt/emul/java/util/TreeSet.java
+++ b/user/super/com/google/gwt/emul/java/util/TreeSet.java
@@ -27,9 +27,9 @@
public class TreeSet<E> extends AbstractSet<E> implements SortedSet<E>, Serializable {
/**
- * TreeSet is stored as a TreeMap of the requested type to a constant integer.
+ * TreeSet is stored as a TreeMap of the requested type to a constant Boolean.
*/
- SortedMap<E, Boolean> map;
+ private SortedMap<E, Boolean> map;
public TreeSet() {
map = new TreeMap<E, Boolean>();
@@ -65,7 +65,7 @@
@Override
public boolean add(E o) {
- // Use "this" as a convenient non-null value to store in the map
+ // Use Boolean.FALSE as a convenient non-null value to store in the map
return map.put(o, Boolean.FALSE) == null;
}