LUCENE-3305: optimization, don't retrieve the base form twice in this filter

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1230769 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-01-12 20:36:58 +00:00
parent 4ebdc0872a
commit 05a65507af
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ public final class KuromojiBaseFormFilter extends TokenFilter {
if (!keywordAtt.isKeyword()) {
String baseForm = basicFormAtt.getBaseForm();
if (baseForm != null) {
termAtt.setEmpty().append(basicFormAtt.getBaseForm());
termAtt.setEmpty().append(baseForm);
}
}
return true;