Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7691

ArrayLists should be created with explicit size if known

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Many places in Lucene there are ArrayLists being created with no explicit size set even when the exact size is known in advance. In these places, the size should be passed in so the underlying array is sized correctly the first time.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mbraun688 Michael Braun
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: