Uploaded image for project: 'Parquet'
  1. Parquet
  2. PARQUET-1732

Call toArray With Empty Array

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.12.0
    • None

    Description

      https://stackoverflow.com/questions/9572795/convert-list-to-array-in-java

       

      It is recommended now to use list.toArray(new Foo[0]);, not list.toArray(new Foo[list.size()]);.

      ... less code too

      Attachments

        Issue Links

          Activity

            People

              belugabehr David Mollitor
              belugabehr David Mollitor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: