Apache Lucene open-source search software
LUCENE-6112: Fix compile error in FST package example code
Koji Sekiguchi692826b90647
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex b27b5e8453f..f2c172e65c9 100644--- a/lucene/CHANGES.txt+++ b/lucene/CHANGES.txt@@ -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 codecdiff --git a/lucene/core/src/java/org/apache/lucene/util/fst/package.html b/lucene/core/src/java/org/apache/lucene/util/fst/package.htmlindex dfd42a3fe1d..10cb686207e 100644--- a/lucene/core/src/java/org/apache/lucene/util/fst/package.html+++ b/lucene/core/src/java/org/apache/lucene/util/fst/package.html@@ -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]);