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:
Michael McCandless 2013-10-02 14:47:31 +00:00
parent 922a58731d
commit 691ec53476
1 changed files with 5 additions and 5 deletions

View File

@ -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();