From 8d6f5ae3bdf24c1a924d58efd5c8ebac89daa36a Mon Sep 17 00:00:00 2001 From: "Bruno P. Kinoshita" Date: Thu, 20 Aug 2020 20:33:04 +1200 Subject: [PATCH] [COLLECTIONS-708] Formatting and update javadocs --- .../apache/commons/collections4/CollectionUtils.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/collections4/CollectionUtils.java b/src/main/java/org/apache/commons/collections4/CollectionUtils.java index 7f7d6bc7e..4c2f4167f 100644 --- a/src/main/java/org/apache/commons/collections4/CollectionUtils.java +++ b/src/main/java/org/apache/commons/collections4/CollectionUtils.java @@ -644,20 +644,21 @@ public class CollectionUtils { } /** - * Returns the hash code the the input collection using the hash method of the equator. + * Returns the hash code of the input collection using the hash method of an equator. + * *

- * If the input collection is null return 0. + * Returns 0 if the input collection is {@code null}. *

* * @param the element type * @param collection the input collection * @param equator the equator used for generate hashCode - * @return the hashCode of Collection through the hash method of Equator - * @throws NullPointerException if the equator is null + * @return the hash code of the input collection using the hash method of an equator + * @throws NullPointerException if the equator is {@code null} * @since 4.5 */ public static int hashCode(final Collection collection, - final Equator equator) { + final Equator equator) { Objects.requireNonNull(equator, "equator"); if (null == collection) { return 0;