LUCENE-6112: Fix compile error in FST package example code

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1645548 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Koji Sekiguchi 2014-12-15 02:19:19 +00:00
parent 85a43a77a9
commit 692826b906
2 changed files with 4 additions and 1 deletions

View File

@ -380,6 +380,9 @@ Documentation
* LUCENE-6057: Improve Sort(SortField) docs (Martin Braun via Mike McCandless)
* LUCENE-6112: Fix compile error in FST package example code
(Tomoko Uchida via Koji Sekiguchi)
Tests
* LUCENE-5957: Add option for tests to not randomize codec

View File

@ -46,7 +46,7 @@ FST Construction example:
PositiveIntOutputs outputs = PositiveIntOutputs.getSingleton();
Builder<Long> builder = new Builder<Long>(INPUT_TYPE.BYTE1, outputs);
BytesRef scratchBytes = new BytesRef();
IntsRef scratchInts = new IntsRef();
IntsRefBuilder scratchInts = new IntsRefBuilder();
for (int i = 0; i < inputValues.length; i++) {
scratchBytes.copyChars(inputValues[i]);
builder.add(Util.toIntsRef(scratchBytes, scratchInts), outputValues[i]);