murblanc commented on a change in pull request #1579: URL: https://github.com/apache/lucene-solr/pull/1579#discussion_r440284972
########## File path: solr/core/src/java/org/apache/solr/pkg/PackageAPI.java ########## @@ -211,7 +211,7 @@ public boolean equals(Object obj) { @Override public int hashCode() { - throw new UnsupportedOperationException("TODO unimplemented"); + return Objects.hash(version, manifestSHA512); Review comment: `equals()` above does not compare `manifestSHA512`. Unless `manifestSHA512` are equal if `version` are (in which case no need to add it here?), we could have two objets that are `equals()` yet have different `hashCode()`, which would be against the spec (see `java.lang.Object.hashCode()` javadoc). ---------------------------------------------------------------- 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