mirror of https://github.com/apache/lucene.git
improve parameter name
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1528500 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
922a58731d
commit
691ec53476
|
@ -403,14 +403,14 @@ public final class FST<T> {
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
void finish(long startNode) throws IOException {
|
void finish(long newStartNode) throws IOException {
|
||||||
if (this.startNode != -1) {
|
if (startNode != -1) {
|
||||||
throw new IllegalStateException("already finished");
|
throw new IllegalStateException("already finished");
|
||||||
}
|
}
|
||||||
if (startNode == FINAL_END_NODE && emptyOutput != null) {
|
if (newStartNode == FINAL_END_NODE && emptyOutput != null) {
|
||||||
startNode = 0;
|
newStartNode = 0;
|
||||||
}
|
}
|
||||||
this.startNode = startNode;
|
startNode = newStartNode;
|
||||||
bytes.finish();
|
bytes.finish();
|
||||||
|
|
||||||
cacheRootArcs();
|
cacheRootArcs();
|
||||||
|
|
Loading…
Reference in New Issue