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

Expose Automaton getter on RunAutomaton

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core/FSTs
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      RunAutomaton is (of course) built from an Automaton and it stores it on a field, package-private. It would be convenient to expose it via a getter. In fact CompiledAutomaton wants it.

      While we're at it, lets mark all the fields private and ensure that the only classes using its state (currently its 2 subclasses) use the getters that already exist for what they need. Those getters are already final so I don't expect a performance impact.

        Attachments

        1. LUCENE_7208.patch
          5 kB
          David Smiley

          Activity

            People

            • Assignee:
              dsmiley David Smiley
              Reporter:
              dsmiley David Smiley
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: