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:
Thomas Neidhart 2013-05-05 15:48:01 +00:00
parent 67e443370e
commit 9687cf07f3
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ public class FixedOrderComparator<T> implements Comparator<T>, Serializable {
* @param items the items that the comparator can compare in order
* @throws IllegalArgumentException if the array is null
*/
public FixedOrderComparator(final T[] items) {
public FixedOrderComparator(final T... items) {
super();
if (items == null) {
throw new IllegalArgumentException("The list of items must not be null");