mirror of https://github.com/apache/lucene.git
Fix small initialization bug in Token.copyTo()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@807028 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4745c8db05
commit
ec49cc2527
|
@ -867,6 +867,7 @@ public class Token extends AttributeImpl
|
|||
to.payload = (Payload) payload.clone();
|
||||
}
|
||||
} else {
|
||||
initTermBuffer();
|
||||
((TermAttribute) target).setTermBuffer(termBuffer, 0, termLength);
|
||||
((OffsetAttribute) target).setOffset(startOffset, endOffset);
|
||||
((PositionIncrementAttribute) target).setPositionIncrement(positionIncrement);
|
||||
|
|
Loading…
Reference in New Issue