Fix implementation of cloning

bug 27159, identified by Fabrizio Giustina


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131596 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2004-02-27 00:24:05 +00:00
parent 227cb6a4a1
commit 5c255a657e
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ import org.apache.commons.collections.MapIterator;
* need for unusual subclasses is here. * need for unusual subclasses is here.
* *
* @since Commons Collections 3.0 * @since Commons Collections 3.0
* @version $Revision: 1.11 $ $Date: 2004/02/18 01:13:19 $ * @version $Revision: 1.12 $ $Date: 2004/02/27 00:24:05 $
* *
* @author java util HashMap * @author java util HashMap
* @author Stephen Colebourne * @author Stephen Colebourne
@ -1153,7 +1153,7 @@ public class AbstractHashedMap implements IterableMap {
cloned.values = null; cloned.values = null;
cloned.modCount = 0; cloned.modCount = 0;
cloned.size = 0; cloned.size = 0;
init(); cloned.init();
cloned.putAll(this); cloned.putAll(this);
return cloned; return cloned;