[
https://issues.apache.org/jira/browse/GROOVY-9703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17186900#comment-17186900
]
Paul King commented on GROOVY-9703:
-----------------------------------
Proposed PR applied. Thanks!
> DefaultGroovyMethods.reverse(T[], true) performs extra copy
> -----------------------------------------------------------
>
> Key: GROOVY-9703
> URL: https://issues.apache.org/jira/browse/GROOVY-9703
> Project: Groovy
> Issue Type: Bug
> Reporter: Eric Milles
> Assignee: Eric Milles
> Priority: Minor
> Time Spent: 20m
> Remaining Estimate: 0h
>
> {code:groovy}
> def array = new Object[] {1,2,3}
> array.reverse(true)
> {code}
> In-place reverse performs an extra (unnecessary) {{System.arraycopy(...)}}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)