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

ValueSource.getSortField shouldn't throw IOException

    XMLWordPrintableJSON

Details

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

    Description

      ValueSource.getSortField just returns a new ValueSourceSortField, whose constructor doesn't declare any checked exceptions. So adding the throws clause to the method declaration means adding pointless try-catch warts to client code.

      Attachments

        1. LUCENE-4520.patch
          4 kB
          Alan Woodward

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: