You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2013/10/02 16:47:53 UTC
svn commit: r1528501 - in /lucene/dev/branches/branch_4x: ./ lucene/
lucene/core/ lucene/core/src/java/org/apache/lucene/util/fst/FST.java
Author: mikemccand
Date: Wed Oct 2 14:47:52 2013
New Revision: 1528501
URL: http://svn.apache.org/r1528501
Log:
improve parameter name
Modified:
lucene/dev/branches/branch_4x/ (props changed)
lucene/dev/branches/branch_4x/lucene/ (props changed)
lucene/dev/branches/branch_4x/lucene/core/ (props changed)
lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/util/fst/FST.java
Modified: lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/util/fst/FST.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/util/fst/FST.java?rev=1528501&r1=1528500&r2=1528501&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/util/fst/FST.java (original)
+++ lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/util/fst/FST.java Wed Oct 2 14:47:52 2013
@@ -400,14 +400,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();