murblanc commented on a change in pull request #1579: URL: https://github.com/apache/lucene-solr/pull/1579#discussion_r440281749
########## File path: solr/core/src/java/org/apache/solr/cloud/rule/Rule.java ########## @@ -365,7 +365,7 @@ public boolean equals(Object obj) { @Override public int hashCode() { - throw new UnsupportedOperationException("TODO unimplemented"); + return Objects.hash(name, fuzzy); Review comment: Given that `fuzzy` is not included in the `equals()` implementation just above, we could have two instances that are `equals()` but that have different values for `hashCode()`. I believe this is not correct. ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org