This is an automated email from the ASF dual-hosted git repository. kinow pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-collections.git
commit 8d6f5ae3bdf24c1a924d58efd5c8ebac89daa36a Author: Bruno P. Kinoshita <ki...@apache.org> AuthorDate: Thu Aug 20 20:33:04 2020 +1200 [COLLECTIONS-708] Formatting and update javadocs --- .../java/org/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 7f7d6bc..4c2f416 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. + * * <p> - * If the input collection is null return 0. + * Returns 0 if the input collection is {@code null}. * </p> * * @param <E> 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 <E> int hashCode(final Collection<? extends E> collection, - final Equator<? super E> equator) { + final Equator<? super E> equator) { Objects.requireNonNull(equator, "equator"); if (null == collection) { return 0;