Fix small initialization bug in TermAttributeImpl.copyTo()

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@807029 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2009-08-23 23:07:04 +00:00
parent ec49cc2527
commit 481245def6
1 changed files with 1 additions and 0 deletions

View File

@ -211,6 +211,7 @@ public class TermAttributeImpl extends AttributeImpl implements TermAttribute, C
}
public void copyTo(AttributeImpl target) {
initTermBuffer();
TermAttribute t = (TermAttribute) target;
t.setTermBuffer(termBuffer, 0, termLength);
}