Use varargs instead of array in constructor.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1479344 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
67e443370e
commit
9687cf07f3
|
@ -89,7 +89,7 @@ public class FixedOrderComparator<T> implements Comparator<T>, Serializable {
|
||||||
* @param items the items that the comparator can compare in order
|
* @param items the items that the comparator can compare in order
|
||||||
* @throws IllegalArgumentException if the array is null
|
* @throws IllegalArgumentException if the array is null
|
||||||
*/
|
*/
|
||||||
public FixedOrderComparator(final T[] items) {
|
public FixedOrderComparator(final T... items) {
|
||||||
super();
|
super();
|
||||||
if (items == null) {
|
if (items == null) {
|
||||||
throw new IllegalArgumentException("The list of items must not be null");
|
throw new IllegalArgumentException("The list of items must not be null");
|
||||||
|
|
Loading…
Reference in New Issue