db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-6292) Use Arrays.copyOf() in FormatableArrayHolder.getArray()
Date Fri, 19 Jul 2013 09:36:49 GMT

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

ASF subversion and git services commented on DERBY-6292:
--------------------------------------------------------

Commit 1504808 from [~knutanders] in branch 'code/trunk'
[ https://svn.apache.org/r1504808 ]

DERBY-6292: Use Arrays.copyOf() in FormatableArrayHolder.getArray()
                
> Use Arrays.copyOf() in FormatableArrayHolder.getArray()
> -------------------------------------------------------
>
>                 Key: DERBY-6292
>                 URL: https://issues.apache.org/jira/browse/DERBY-6292
>             Project: Derby
>          Issue Type: Improvement
>          Components: Services
>    Affects Versions: 10.11.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Trivial
>         Attachments: d6292-1a.diff
>
>
> FormatableArrayHolder.getArray() creates an array of the correct type using reflection
and copies it manually. Java 6 introduced a copyOf() method in java.util.Arrays that could
do all of this automatically. Now that Java 6 is the minimum level on trunk, we could take
advantage of the library method and simplify the code.

--
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

Mime
View raw message