diff options
author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-07 23:00:49 +0000 |
---|---|---|
committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-07 23:00:49 +0000 |
commit | 0c1f56b373f38458963e1ff637adc064149b6577 (patch) | |
tree | 59347fad8faa35609f0e16a6810a3b32d0f78a62 /libjava/java/util/Hashtable.java | |
parent | 0d14ff0b2d9111cc9e621e6d09645ac59d2dd26d (diff) | |
download | ppe42-gcc-0c1f56b373f38458963e1ff637adc064149b6577.tar.gz ppe42-gcc-0c1f56b373f38458963e1ff637adc064149b6577.zip |
* java/util/Hashtable.java (Hashtable(Map)): Use putAll, not
putAllInternal.
(putAllInternal): Correct comment.
* java/util/HashMap.java (HashMap(Map)): As above.
(putAllInternal): As above.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74400 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/util/Hashtable.java')
-rw-r--r-- | libjava/java/util/Hashtable.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libjava/java/util/Hashtable.java b/libjava/java/util/Hashtable.java index 9cfa925762a..698871b5124 100644 --- a/libjava/java/util/Hashtable.java +++ b/libjava/java/util/Hashtable.java @@ -234,7 +234,7 @@ public class Hashtable extends Dictionary public Hashtable(Map m) { this(Math.max(m.size() * 2, DEFAULT_CAPACITY), DEFAULT_LOAD_FACTOR); - putAllInternal(m); + putAll(m); } /** @@ -852,9 +852,9 @@ public class Hashtable extends Dictionary } /** - * A simplified, more efficient internal implementation of putAll(). The - * Map constructor and clone() should not call putAll or put, in order to - * be compatible with the JDK implementation with respect to subclasses. + * A simplified, more efficient internal implementation of putAll(). clone() + * should not call putAll or put, in order to be compatible with the JDK + * implementation with respect to subclasses. * * @param m the map to initialize this from */ |