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

Eliminate construction over readers for Tokenizer

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0, 6.0
    • core/other
    • None
    • New

    Description

      In the modern world, Tokenizers are intended to be reusable, with input supplied via #setReader. The constructors that take Reader are a vestige. Worse yet, they invite people to make mistakes in handling the reader that tangle them up with the state machine in Tokenizer. The sensible thing is to eliminate these ctors, and force setReader usage.

      Attachments

        1. LUCENE-5388.patch
          646 kB
          Robert Muir

        Activity

          People

            Unassigned Unassigned
            bmargulies Benson Margulies
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: