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;
|
||||
}
|
||||
|
||||
void finish(long startNode) throws IOException {
|
||||
if (this.startNode != -1) {
|
||||
void finish(long newStartNode) throws IOException {
|
||||
if (startNode != -1) {
|
||||
throw new IllegalStateException("already finished");
|
||||
}
|
||||
if (startNode == FINAL_END_NODE && emptyOutput != null) {
|
||||
startNode = 0;
|
||||
if (newStartNode == FINAL_END_NODE && emptyOutput != null) {
|
||||
newStartNode = 0;
|
||||
}
|
||||
this.startNode = startNode;
|
||||
startNode = newStartNode;
|
||||
bytes.finish();
|
||||
|
||||
cacheRootArcs();
|
||||
|
|
Loading…
Reference in New Issue