You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas Neidhart (JIRA)" <ji...@apache.org> on 2013/02/24 22:26:12 UTC

[jira] [Resolved] (COLLECTIONS-283) HashedMap deepClone

     [ https://issues.apache.org/jira/browse/COLLECTIONS-283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Neidhart resolved COLLECTIONS-283.
-----------------------------------------

    Resolution: Implemented

HashedMap already implements a shallow clone, ie the entries are put into the cloned map.

This behavior is equivalent to the one in the proposed patch.
A real "deep" clone would clone all map entries and put them into the cloned map.
                
> HashedMap deepClone
> -------------------
>
>                 Key: COLLECTIONS-283
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-283
>             Project: Commons Collections
>          Issue Type: New Feature
>          Components: Map
>    Affects Versions: 4.0-beta-1
>         Environment: All
>            Reporter: Hasan Diwan
>         Attachments: MapUtils.pat
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> The HashedMap class lacks a method to do a deep clone() of the Object. This patch adds it and adds a test to make sure it works.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira