[ 
https://issues.apache.org/jira/browse/AVRO-1455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13899535#comment-13899535
 ] 

Doug Cutting commented on AVRO-1455:
------------------------------------

Note a related proposal on the mailing list to stop treating enum symbols as 
immutable, which would then permit folks to use deepCopy to convert from 
generic to specific representations and vice versa.

http://s.apache.org/deepCopy


> Deep copy does not need to create new instances for primitives
> --------------------------------------------------------------
>
>                 Key: AVRO-1455
>                 URL: https://issues.apache.org/jira/browse/AVRO-1455
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.7.6
>            Reporter: Tom White
>            Assignee: Tom White
>         Attachments: AVRO-1455.patch
>
>
> Java Boolean, Integer, Long, Float and Double are immutable so there's no 
> need to create new instances for them in GenericData#deepCopy. Note that this 
> optimization is already present for String.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to