From ac8e7ab1b1a8e983171ce556495f5708dfeea95a Mon Sep 17 00:00:00 2001 From: zhouhui Date: Wed, 16 Oct 2024 16:02:02 +0800 Subject: [PATCH] Remove TODO in FSTCompiler#freezeTail. --- .../core/src/java/org/apache/lucene/util/fst/FSTCompiler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/core/src/java/org/apache/lucene/util/fst/FSTCompiler.java b/lucene/core/src/java/org/apache/lucene/util/fst/FSTCompiler.java index d51c256d48e..3ba6b5212d4 100644 --- a/lucene/core/src/java/org/apache/lucene/util/fst/FSTCompiler.java +++ b/lucene/core/src/java/org/apache/lucene/util/fst/FSTCompiler.java @@ -828,7 +828,7 @@ public class FSTCompiler { // FSTEnum, Util, etc., have trouble w/ non-final // dead-end states: - // TODO: is node.numArcs == 0 always false? we no longer prune any nodes from FST: + // node.numArcs == 0 happens on last node, but it is final. final boolean isFinal = node.isFinal || node.numArcs == 0; // this node makes it and we now compile it. first,