garydgregory commented on a change in pull request #89: [COLLECTIONS-708]Add
hashCode method to CollectionUtils
URL: https://github.com/apache/commons-collections/pull/89#discussion_r404929066
##########
File path: src/main/java/org/apache/commons/collections4/CollectionUtils.java
##########
@@ -624,9 +624,7 @@ public static boolean isEqualCollection(final
Collection<?> a, final Collection<
*/
public static <E> int hashCode(final Collection<? extends E> collection,
final Equator<? super E> equator) {
- if (null == equator) {
- throw new NullPointerException( "Equator must not be null." );
- }
+ Objects.requireNonNull(equator, "Equator");
Review comment:
"Equator" -> "equator"
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services