You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@parquet.apache.org by "Fokko Driesprong (Jira)" <ji...@apache.org> on 2020/01/05 18:26:00 UTC

[jira] [Resolved] (PARQUET-1732) Call toArray With Empty Array

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

Fokko Driesprong resolved PARQUET-1732.
---------------------------------------
    Fix Version/s: 1.12.0
       Resolution: Fixed

> Call toArray With Empty Array
> -----------------------------
>
>                 Key: PARQUET-1732
>                 URL: https://issues.apache.org/jira/browse/PARQUET-1732
>             Project: Parquet
>          Issue Type: Improvement
>            Reporter: David Mollitor
>            Assignee: David Mollitor
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.12.0
>
>
> [https://stackoverflow.com/questions/9572795/convert-list-to-array-in-java]
>  
> {quote}It is recommended now to use list.toArray(new Foo[0]);, not list.toArray(new Foo[list.size()]);.
> {quote}
> ... less code too :)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)