mirror of https://github.com/apache/lucene.git
small opto when charfilter is used: don't call this method twice in end
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1305742 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5a4767cd4c
commit
620f9a5739
|
@ -260,7 +260,8 @@ public final class JapaneseTokenizer extends Tokenizer {
|
|||
@Override
|
||||
public void end() {
|
||||
// Set final offset
|
||||
offsetAtt.setOffset(correctOffset(pos), correctOffset(pos));
|
||||
int finalOffset = correctOffset(pos);
|
||||
offsetAtt.setOffset(finalOffset, finalOffset);
|
||||
}
|
||||
|
||||
// Returns the added cost that a 2nd best segmentation is
|
||||
|
|
Loading…
Reference in New Issue