This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: TreeMap doc fix


I'm checking in these tiny doc fixes for TreeMap.

Bryce.


2003-10-26 Bryce McKinlay <bryce@mckinlay.net.nz>


* java/util/TreeMap.java: Doc fixes. HashMap -> TreeMap.

Index: TreeMap.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/util/TreeMap.java,v
retrieving revision 1.9
diff -u -r1.9 TreeMap.java
--- TreeMap.java 3 Jan 2003 17:00:03 -0000 1.9
+++ TreeMap.java 26 Oct 2003 02:46:11 -0000
@@ -533,7 +533,7 @@
* key's mapping.
*
* @param key the key used to locate the value
- * @param value the value to be stored in the HashMap
+ * @param value the value to be stored in the Map
* @return the prior mapping of the key, or null if there was none
* @throws ClassCastException if key is not comparable to current map keys
* @throws NullPointerException if key is null, but the comparator does
@@ -584,11 +584,11 @@
}


/**
- * Copies all elements of the given map into this hashtable. If this table
+ * Copies all elements of the given map into this TreeMap. If this map
* already has a mapping for a key, the new mapping replaces the current
* one.
*
- * @param m the map to be hashed into this
+ * @param m the map to be added
* @throws ClassCastException if a key in m is not comparable with keys
* in the map
* @throws NullPointerException if a key in m is null, and the comparator
@@ -1374,7 +1374,7 @@
}


/**
- * Iterate over HashMap's entries. This implementation is parameterized
+ * Iterate over TreeMap's entries. This implementation is parameterized
* to give a sequential view of keys, values, or entries.
*
* @author Eric Blake <ebb9@email.byu.edu>




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]