You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ko...@apache.org on 2014/12/15 03:19:19 UTC
svn commit: r1645548 - in /lucene/dev/trunk/lucene: CHANGES.txt
core/src/java/org/apache/lucene/util/fst/package.html
Author: koji
Date: Mon Dec 15 02:19:19 2014
New Revision: 1645548
URL: http://svn.apache.org/r1645548
Log:
LUCENE-6112: Fix compile error in FST package example code
Modified:
lucene/dev/trunk/lucene/CHANGES.txt
lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/fst/package.html
Modified: lucene/dev/trunk/lucene/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/CHANGES.txt?rev=1645548&r1=1645547&r2=1645548&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/CHANGES.txt (original)
+++ lucene/dev/trunk/lucene/CHANGES.txt Mon Dec 15 02:19:19 2014
@@ -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
Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/fst/package.html
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/fst/package.html?rev=1645548&r1=1645547&r2=1645548&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/fst/package.html (original)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/fst/package.html Mon Dec 15 02:19:19 2014
@@ -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]);