mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
Hashtable.java (Hashtable(Map)): Use putAll, not putAllInternal.
* java/util/Hashtable.java (Hashtable(Map)): Use putAll, not putAllInternal. (putAllInternal): Correct comment. * java/util/HashMap.java (HashMap(Map)): As above. (putAllInternal): As above. From-SVN: r74400
This commit is contained in:
committed by
Bryce McKinlay
parent
eb1e64ef80
commit
0f46e42809
@@ -223,7 +223,7 @@ public class HashMap extends AbstractMap
|
||||
public HashMap(Map m)
|
||||
{
|
||||
this(Math.max(m.size() * 2, DEFAULT_CAPACITY), DEFAULT_LOAD_FACTOR);
|
||||
putAllInternal(m);
|
||||
putAll(m);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -699,9 +699,9 @@ public class HashMap extends AbstractMap
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user