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 2019/04/22 15:53:49 UTC

[lucene-solr] branch branch_8x updated: cosmetic fix in FST.Builder assertion (thanks zhenyuan wei)

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

mikemccand pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/branch_8x by this push:
     new c893608  cosmetic fix in FST.Builder assertion (thanks zhenyuan wei)
c893608 is described below

commit c893608eef2bef11c595244a0708284d51ac1999
Author: Mike McCandless <mi...@apache.org>
AuthorDate: Mon Apr 22 11:52:18 2019 -0400

    cosmetic fix in FST.Builder assertion (thanks zhenyuan wei)
---
 lucene/core/src/java/org/apache/lucene/util/fst/Builder.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lucene/core/src/java/org/apache/lucene/util/fst/Builder.java b/lucene/core/src/java/org/apache/lucene/util/fst/Builder.java
index 428edd3..5662cbe 100644
--- a/lucene/core/src/java/org/apache/lucene/util/fst/Builder.java
+++ b/lucene/core/src/java/org/apache/lucene/util/fst/Builder.java
@@ -583,7 +583,7 @@ public class Builder<T> {
 
     public void addArc(int label, Node target) {
       assert label >= 0;
-      assert numArcs == 0 || label > arcs[numArcs-1].label: "arc[-1].label=" + arcs[numArcs-1].label + " new label=" + label + " numArcs=" + numArcs;
+      assert numArcs == 0 || label > arcs[numArcs-1].label: "arc[numArcs-1].label=" + arcs[numArcs-1].label + " new label=" + label + " numArcs=" + numArcs;
       if (numArcs == arcs.length) {
         final Arc<T>[] newArcs = ArrayUtil.grow(arcs, numArcs+1);
         for(int arcIdx=numArcs;arcIdx<newArcs.length;arcIdx++) {