Skip to content

Apache Lucene open-source search software

improve parameter name

Michael McCandless691ec534768b
diff --git a/lucene/core/src/java/org/apache/lucene/util/fst/FST.java b/lucene/core/src/java/org/apache/lucene/util/fst/FST.java
index f2e5ffde981..74e5a0f4a78 100644
--- a/lucene/core/src/java/org/apache/lucene/util/fst/FST.java
+++ b/lucene/core/src/java/org/apache/lucene/util/fst/FST.java
@@ -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();