This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git


The following commit(s) were added to refs/heads/master by this push:
     new 8618b108f Add @SuppressWarnings and tweak formatting
8618b108f is described below

commit 8618b108f89c6135cf80e3b631ea7a8ae9cf2437
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Nov 6 10:18:01 2022 -0500

    Add @SuppressWarnings and tweak formatting
---
 src/main/java/org/apache/commons/collections4/ComparatorUtils.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/collections4/ComparatorUtils.java 
b/src/main/java/org/apache/commons/collections4/ComparatorUtils.java
index ed89a16bb..600ef4eb1 100644
--- a/src/main/java/org/apache/commons/collections4/ComparatorUtils.java
+++ b/src/main/java/org/apache/commons/collections4/ComparatorUtils.java
@@ -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));
     }
 
     /**

Reply via email to