[ 
https://issues.apache.org/jira/browse/LUCENE-7691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15862535#comment-15862535
 ] 

ASF GitHub Bot commented on LUCENE-7691:
----------------------------------------

GitHub user michaelbraun opened a pull request:

    https://github.com/apache/lucene-solr/pull/157

    LUCENE-7691 - add explicit size to arraylist creation if known

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/michaelbraun/lucene-solr lucene-7691

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/lucene-solr/pull/157.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #157
    
----
commit 5bf7f71925aa8c4b2055feb5f4433b90db39249f
Author: Michael Braun <[email protected]>
Date:   2017-02-11T21:06:19Z

    LUCENE-7691 - add explicit size to arraylist creation if known

----


> ArrayLists should be created with explicit size if known
> --------------------------------------------------------
>
>                 Key: LUCENE-7691
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7691
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Michael Braun
>            Priority: Trivial
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to