ErickErickson commented on a change in pull request #1579: URL: https://github.com/apache/lucene-solr/pull/1579#discussion_r445264830
########## File path: solr/solrj/src/java/org/apache/solr/common/util/ValidatingJsonMap.java ########## @@ -348,10 +348,12 @@ public boolean equals(Object that) { return that instanceof Map && this.delegate.equals(that); } -// @Override -// public int hashCode() { -// throw new UnsupportedOperationException("TODO unimplemented ValidatingJsonMap.hashCode"); -// } + //TODO: Really uncertain about this. Hashing the map itself seems + // about as expensive as resolving with equals. Review comment: Right. Still, every time a hashcode is computed, it iterates the entire map which could be arbitrarily large. I don't see much other choice though. ---------------------------------------------------------------- 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