Julian Sedding created SLING-12500: -------------------------------------- Summary: ArtifactId #equals() and #hashCode() should not call #toMvnUrl() Key: SLING-12500 URL: https://issues.apache.org/jira/browse/SLING-12500 Project: Sling Issue Type: Improvement Components: Feature Model Affects Versions: Feature Model 2.0.0 Reporter: Julian Sedding Assignee: Julian Sedding Fix For: Feature Model 2.0.2
The implementations of {{ArtifactId#equals()}} and {{ArtifactId#hashCode()}} both delegate to {{ArtifactId#toMvnUrl()}}. This makes these calls unnecessarily expensive, because a {{StringBuilder}} is created each time. It would be more efficient to implement these methods based on the fields of {{ArtifactId}}. -- This message was sent by Atlassian Jira (v8.20.10#820010)