You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2019/10/14 16:47:00 UTC
[jira] [Commented] (LUCENE-8994) Code Cleanup - Pass values to list
constructor instead of empty constructor followed by addAll().
[ https://issues.apache.org/jira/browse/LUCENE-8994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16951144#comment-16951144 ]
ASF subversion and git services commented on LUCENE-8994:
---------------------------------------------------------
Commit e7e6cfaecfa44729bc7eae75a80493ec3e11944b in lucene-solr's branch refs/heads/master from Koen De Groote
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=e7e6cfa ]
LUCENE-8994: Code Cleanup - Pass values to list constructor instead of empty constructor followed by addAll(). (#919)
> Code Cleanup - Pass values to list constructor instead of empty constructor followed by addAll().
> -------------------------------------------------------------------------------------------------
>
> Key: LUCENE-8994
> URL: https://issues.apache.org/jira/browse/LUCENE-8994
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Koen De Groote
> Priority: Trivial
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Trivial ticket, if your time is precious, feel free to skip.
>
> In case of passing a collection into another, it's more efficient to pass the already existing collection into the constructor of the new one. It can usually deal with it more efficiently.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org