Skip to content

Commit

Permalink
call public method instead of private field
Browse files Browse the repository at this point in the history
see 760f2dbdcb29b993aab8f981d84ccbf2e20e9fa5
  • Loading branch information
shcant authored Mar 20, 2020
1 parent a4d8c3f commit cf7283c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ private void parse() throws IOException {
BytesRef pendingOutput = fst.outputs.getNoOutput();
fst.getFirstArc(scratchArc);

assert scratchArc.output == fst.outputs.getNoOutput();
assert scratchArc.output() == fst.outputs.getNoOutput();

int tokenCount = 0;

Expand Down Expand Up @@ -263,15 +263,15 @@ private void parse() throws IOException {

// Accum the output
pendingOutput = fst.outputs.add(pendingOutput,
scratchArc.output);
scratchArc.output());
bufUpto += Character.charCount(codePoint);
}

// OK, entire token matched; now see if this is a final
// state:
if (scratchArc.isFinal()) {
matchOutput = fst.outputs.add(pendingOutput,
scratchArc.nextFinalOutput);
scratchArc.nextFinalOutput());
matchInputLength = tokenCount;
matchEndOffset = inputEndOffset;
}
Expand All @@ -288,7 +288,7 @@ private void parse() throws IOException {
// More matching is possible -- accum the output (if
// any) of the WORD_SEP arc:
pendingOutput = fst.outputs.add(pendingOutput,
scratchArc.output);
scratchArc.output());
if (nextRead == nextWrite) {
capture();
}
Expand Down

0 comments on commit cf7283c

Please sign in to comment.