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 {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private static final Comparator[] EMPTY_COMPARATOR_ARRAY = {};
|
||||
|
||||
/**
|
||||
|
@ -99,9 +100,7 @@ public class ComparatorUtils {
|
|||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static <E> Comparator<E> chainedComparator(final Collection<Comparator<E>> comparators) {
|
||||
return chainedComparator(
|
||||
comparators.toArray(EMPTY_COMPARATOR_ARRAY)
|
||||
);
|
||||
return chainedComparator(comparators.toArray(EMPTY_COMPARATOR_ARRAY));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue