Uploaded image for project: 'Maven JXR'
  1. Maven JXR
  2. JXR-158

StringEntry shouldn't be Comparable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.1.1
    • None
    • None

    Description

      Edit: original title was: StringEntry should implement equals and hashcode

      Because it implements Comparable.  Per Oracle,

      It is strongly recommended, but not strictly required that (x.compareTo==0) == (x.equals). Generally speaking, any class that implements the Comparable interface and violates this condition should clearly indicate this fact. The recommended language is "Note: this class has a natural ordering that is inconsistent with equals."

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            elharo Elliotte Rusty Harold
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: