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

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.1, 6.0
    • Component/s: core/search
    • Labels:
      None
    • Lucene Fields:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: