You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Steven Rowe (Updated) (JIRA)" <ji...@apache.org> on 2011/12/13 23:59:30 UTC
[jira] [Updated] (LUCENE-3645) Remove unnecessary array wrapping
when calling varargs methods
[ https://issues.apache.org/jira/browse/LUCENE-3645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steven Rowe updated LUCENE-3645:
--------------------------------
Attachment: LUCENE-3645-branch_3x.patch
LUCENE-3645-trunk.patch
Patches implementing the idea (thanks to IntelliJ's "Redundant array creation" inspection that found all these).
In branch_3x, I didn't change anything under {{lucene/backwards/}}.
Also converted one {{Arrays.asList(new Integer\[0\])}} to {{Collections.emptyList()}}, and several {{Arrays.asList(new CLASS\[\] \{ ... \})}} to {{Arrays.<CLASS>asList(...)}}.
> Remove unnecessary array wrapping when calling varargs methods
> --------------------------------------------------------------
>
> Key: LUCENE-3645
> URL: https://issues.apache.org/jira/browse/LUCENE-3645
> Project: Lucene - Java
> Issue Type: Improvement
> Affects Versions: 3.5, 4.0
> Reporter: Steven Rowe
> Assignee: Steven Rowe
> Priority: Minor
> Attachments: LUCENE-3645-branch_3x.patch, LUCENE-3645-trunk.patch
>
>
> varargs method callers don't have to wrap args in arrays
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org