Add @SuppressWarnings and tweak formatting
This commit is contained in:
parent
5286ebe2c6
commit
8618b108f8
|
@ -41,6 +41,7 @@ import org.apache.commons.collections4.comparators.TransformingComparator;
|
||||||
*/
|
*/
|
||||||
public class ComparatorUtils {
|
public class ComparatorUtils {
|
||||||
|
|
||||||
|
@SuppressWarnings("rawtypes")
|
||||||
private static final Comparator[] EMPTY_COMPARATOR_ARRAY = {};
|
private static final Comparator[] EMPTY_COMPARATOR_ARRAY = {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -99,9 +100,7 @@ public class ComparatorUtils {
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public static <E> Comparator<E> chainedComparator(final Collection<Comparator<E>> comparators) {
|
public static <E> Comparator<E> chainedComparator(final Collection<Comparator<E>> comparators) {
|
||||||
return chainedComparator(
|
return chainedComparator(comparators.toArray(EMPTY_COMPARATOR_ARRAY));
|
||||||
comparators.toArray(EMPTY_COMPARATOR_ARRAY)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue