lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (Commented) (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3645) Remove unnecessary array wrapping when calling varargs methods
Date Wed, 14 Dec 2011 09:08:30 GMT


Uwe Schindler commented on LUCENE-3645:

bq. Also converted one Arrays.asList(new Integer[0]) to Collections.emptyList()
But these are different right? specifically the first is mutable but the latter is immutable?

Immutability is not a problem, an empty array cannot change.

The answer is correct, the IBM JDK has a bug, making the Collection's.emptyList() not implement
RandomAccess. Can you add a comment, if not already there?
> Remove unnecessary array wrapping when calling varargs methods
> --------------------------------------------------------------
>                 Key: LUCENE-3645
>                 URL:
>             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-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:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message