mirror of https://github.com/apache/lucene.git
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:
parent
ec49cc2527
commit
481245def6
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue