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
2002-12-08 Bryce McKinlay <bryce@mckinlay.net.nz>
+ * java/util/Hashtable.java (Hashtable(Map)): Use putAll, not putAllInternal.
+ (putAllInternal): Correct comment.
+ * java/util/HashMap.java (HashMap(Map)): As above.
+ (putAllInternal): As above.
+
+2002-12-08 Bryce McKinlay <bryce@mckinlay.net.nz>
+
* java/util/Hashtable.java (internalContainsValue): Removed.
(containsValue): Don't delegate to internalContainsValue.
public HashMap(Map m)
{
this(Math.max(m.size() * 2, DEFAULT_CAPACITY), DEFAULT_LOAD_FACTOR);
- putAllInternal(m);
+ putAll(m);
}
/**
}
/**
- * 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
*/
public Hashtable(Map m)
{
this(Math.max(m.size() * 2, DEFAULT_CAPACITY), DEFAULT_LOAD_FACTOR);
- putAllInternal(m);
+ putAll(m);
}
/**
}
/**
- * 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
*/