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

FieldComparatorSource.newComparator() doesn't need to throw IOException

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.5
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      All IO operations on FieldComparator are done in .getLeafComparator(), so there's no need to declare IOException on their constructors.

      This bubbles back up and lets us remove throws clauses from a number of constructors, TopDocs.merge(), and so on.

        Attachments

        1. LUCENE-7644.patch
          40 kB
          Alan Woodward

          Activity

            People

            • Assignee:
              romseygeek Alan Woodward
              Reporter:
              romseygeek Alan Woodward
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: