Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-6333

Clean up overridden .equals and .hashCode methods in Query subclasses

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.0
    • 5.1, 6.0
    • core/search
    • None
    • New

    Description

      As a followup to LUCENE-6304, all classes that subclass Query and override the equals and hashCode methods should call super.equals/hashCode and, when possible, not override the methods at all.

      For example, TermQuery.hashCode overrides the Query.hashCode, but will be exactly the same code once LUCENE-6304 is merged.

      Attachments

        1. LUCENE-6333.patch
          14 kB
          Lee Hinman
        2. LUCENE-6333-2.patch
          2 kB
          Lee Hinman
        3. LUCENE-6333-2.patch
          2 kB
          Lee Hinman

        Activity

          People

            Unassigned Unassigned
            dakrone Lee Hinman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: