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

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

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 6.5
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: