You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by pa...@apache.org on 2021/12/21 08:15:46 UTC

[lucene] branch main updated: Fix default alphabetSize of NFARunAutomaton (#559)

This is an automated email from the ASF dual-hosted git repository.

patrickz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/main by this push:
     new 8f99c12  Fix default alphabetSize of NFARunAutomaton (#559)
8f99c12 is described below

commit 8f99c121139769428f8c1b36c9b6d45f0be11883
Author: Patrick Zhai <zh...@users.noreply.github.com>
AuthorDate: Tue Dec 21 00:15:38 2021 -0800

    Fix default alphabetSize of NFARunAutomaton (#559)
---
 .../core/src/java/org/apache/lucene/util/automaton/NFARunAutomaton.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lucene/core/src/java/org/apache/lucene/util/automaton/NFARunAutomaton.java b/lucene/core/src/java/org/apache/lucene/util/automaton/NFARunAutomaton.java
index 0957715..a358c2b 100644
--- a/lucene/core/src/java/org/apache/lucene/util/automaton/NFARunAutomaton.java
+++ b/lucene/core/src/java/org/apache/lucene/util/automaton/NFARunAutomaton.java
@@ -54,7 +54,7 @@ public class NFARunAutomaton implements ByteRunnable, TransitionAccessor {
    *     better efficiency
    */
   public NFARunAutomaton(Automaton automaton) {
-    this(automaton, Character.MAX_CODE_POINT);
+    this(automaton, Character.MAX_CODE_POINT + 1);
   }
 
   /**