Author: [EMAIL PROTECTED]
Date: Mon Dec 8 14:52:40 2008
New Revision: 4272
Modified:
releases/1.6/user/super/com/google/gwt/emul/java/util/TreeSet.java
Log:
Updated the comment and made the instance member private.
Patch by: amitmanjhi
Review by: jat (desk review)
Modified: releases/1.6/user/super/com/google/gwt/emul/java/util/TreeSet.java
==============================================================================
--- releases/1.6/user/super/com/google/gwt/emul/java/util/TreeSet.java
(original)
+++ releases/1.6/user/super/com/google/gwt/emul/java/util/TreeSet.java Mon
Dec 8 14:52:40 2008
@@ -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;
}
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---