avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom White (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AVRO-1455) Deep copy does not need to create new instances for primitives
Date Mon, 03 Mar 2014 15:27:20 GMT

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

Tom White updated AVRO-1455:
----------------------------

       Resolution: Fixed
    Fix Version/s: 1.7.7
     Hadoop Flags: Reviewed
           Status: Resolved  (was: Patch Available)

I just committed this.

> 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
>             Fix For: 1.7.7
>
>         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.2#6252)

Mime
View raw message