Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-12500

ArtifactId #equals() and #hashCode() should not call #toMvnUrl()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Feature Model 2.0.0
    • Feature Model 2.0.2
    • Feature Model
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              jsedding Julian Sedding
              jsedding Julian Sedding
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: