gsmet commented on code in PR #536: URL: https://github.com/apache/maven-resolver/pull/536#discussion_r1701742710
########## maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/collect/DataPool.java: ########## @@ -257,7 +257,7 @@ public static final class DescriptorKey { private DescriptorKey(Artifact artifact) { this.artifact = artifact; - this.hashCode = buildHashCode(); + this.hashCode = Objects.hashCode(artifact); Review Comment: Ah yeah sorry, I was used to more complex hashCode construction and kept this pattern (we avoid using `Objects.hash` as it allocates an array and can be problematic in some cases so we end up with traditional boilerplate hashCodes). -- 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. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org