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 fab802038 Sort members
fab802038 is described below

commit fab8020385737d57c66ae1ca4164dfeec039741e
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Dec 19 14:21:21 2025 -0500

    Sort members
---
 .../apache/commons/collections4/MultiMapUtils.java | 26 +++++++++++-----------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/main/java/org/apache/commons/collections4/MultiMapUtils.java 
b/src/main/java/org/apache/commons/collections4/MultiMapUtils.java
index c698a38e5..82bebab7c 100644
--- a/src/main/java/org/apache/commons/collections4/MultiMapUtils.java
+++ b/src/main/java/org/apache/commons/collections4/MultiMapUtils.java
@@ -158,19 +158,6 @@ public class MultiMapUtils {
         return null;
     }
 
-    /**
-     * Null-safe check if the specified {@code MultiValuedMap} is empty.
-     * <p>
-     * If the provided map is null, returns true.
-     * </p>
-     *
-     * @param map  the map to check, may be null
-     * @return true if the map is empty or null
-     */
-    public static boolean isEmpty(final MultiValuedMap<?, ?> map) {
-        return map == null || map.isEmpty();
-    }
-
     /**
      * A utility method to invert the mappings from an input MultiValuedMap
      * and add them to an output MultiValuedMap. Use this method to have 
complete
@@ -192,6 +179,19 @@ public class MultiMapUtils {
         return output;
     }
 
+    /**
+     * Null-safe check if the specified {@code MultiValuedMap} is empty.
+     * <p>
+     * If the provided map is null, returns true.
+     * </p>
+     *
+     * @param map  the map to check, may be null
+     * @return true if the map is empty or null
+     */
+    public static boolean isEmpty(final MultiValuedMap<?, ?> map) {
+        return map == null || map.isEmpty();
+    }
+
     /**
      * Creates a {@link ListValuedMap} with an {@link java.util.ArrayList 
ArrayList} as
      * collection class to store the values mapped to a key.

Reply via email to