From 9687cf07f34bbf5f67c17e75cadd287b9f6662cb Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Sun, 5 May 2013 15:48:01 +0000 Subject: [PATCH] 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 --- .../commons/collections4/comparators/FixedOrderComparator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/collections4/comparators/FixedOrderComparator.java b/src/main/java/org/apache/commons/collections4/comparators/FixedOrderComparator.java index 7058865a7..03f34d9fc 100644 --- a/src/main/java/org/apache/commons/collections4/comparators/FixedOrderComparator.java +++ b/src/main/java/org/apache/commons/collections4/comparators/FixedOrderComparator.java @@ -89,7 +89,7 @@ public class FixedOrderComparator implements Comparator, 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");