[
https://issues.apache.org/jira/browse/SLING-12500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Sedding resolved SLING-12500.
------------------------------------
Resolution: Fixed
> 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
> Priority: Minor
> 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)