You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "nabarun (Jira)" <ji...@apache.org> on 2019/09/17 18:51:00 UTC
[jira] [Updated] (GEODE-7213) Zero-sized array for toArray() is
recommended in modern JDK
[ https://issues.apache.org/jira/browse/GEODE-7213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
nabarun updated GEODE-7213:
---------------------------
Summary: Zero-sized array for toArray() is recommended in modern JDK (was: Zero-sized array is recommended in modern JDK)
> Zero-sized array for toArray() is recommended in modern JDK
> -----------------------------------------------------------
>
> Key: GEODE-7213
> URL: https://issues.apache.org/jira/browse/GEODE-7213
> Project: Geode
> Issue Type: Bug
> Reporter: nabarun
> Priority: Major
>
> pre-defined array size for allocation was a requirement in pre-JDK6 era.
> {{toArray(new T[0])}} seems faster, safer, and contractually cleaner, and therefore should be the default choice now.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)