Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-601

[patch] objects that compareTo each other, should also equals each other

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.8, 0.9
    • 0.10
    • mime
    • None

    Description

      various classes implement compareTo but don't implement equals. These two methods should work the same as some built-in class in the jdk have switched implementations thru different versions to use compareTo vs equals. In addition, added hashCode methods for there classes.

      Attachments

        1. compareto_should_equals.diff
          3 kB
          Dave Brosius

        Activity

          People

            jukkaz Jukka Zitting
            dbrosius@apache.org Dave Brosius
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified