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

The param 'fis' in StoredFieldsWriter.finish(FieldInfos fis, int numDocs) is never used

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 8.6.2
    • 9.0
    • core/codecs
    • None
    • New

    Description

      We can see the `FieldInfos fis` in StoredFieldsWriter.finish(FieldInfos fis, int numDocs) is never used.

      The class has four subclasses: Lucene90CompressingStoredFieldsWriter,Lucene50CompressingStoredFieldsWriter,CrankyStoredFieldsWriter,SimpleTextStoredFieldsWriter. the function `finish` in all four subclasses never use `fis`, if we could remove it from the function.

      The same situation with the function `finish` in TermVectorsWriter.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kkewwei kkewwei
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 10m
                1h 10m