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

SortField.missingValue should not be public

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 6.0
    • None
    • None
    • New

    Description

      Today we have SortField.setMissingValue that tries to perform validation of the missing value, except that given that SortField.missingValue is public, it is very easy to bypass it. Let's make it protected (some sub-classes use it) and add a getter.

      Attachments

        1. LUCENE-6947.patch
          2 kB
          Adrien Grand

        Activity

          People

            jpountz Adrien Grand
            jpountz Adrien Grand
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: