From 89a5d44610b3f933419d71db70a00a11654d49bd Mon Sep 17 00:00:00 2001 From: zhouhui Date: Thu, 17 Oct 2024 16:51:16 +0800 Subject: [PATCH] Update comment. --- .../core/src/java/org/apache/lucene/util/fst/FSTCompiler.java | 3 ++- 1 file changed, 2 insertions(+), 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 3ba6b5212d4..df928400cc7 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,8 @@ public class FSTCompiler { // FSTEnum, Util, etc., have trouble w/ non-final // dead-end states: - // node.numArcs == 0 happens on last node, but it is final. + // node.numArcs == 0 happens on last node. But it is final, we still can remove node.numArcs + // == 0. final boolean isFinal = node.isFinal || node.numArcs == 0; // this node makes it and we now compile it. first,