From 60b19f2da99d59d6f8afd7a5799f83ff9d84e2a7 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Sat, 12 Jan 2013 16:39:47 +0000 Subject: [PATCH] add assert git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1432472 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/core/src/java/org/apache/lucene/util/fst/FST.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lucene/core/src/java/org/apache/lucene/util/fst/FST.java b/lucene/core/src/java/org/apache/lucene/util/fst/FST.java index 58ec0cf67da..a47398fe22c 100644 --- a/lucene/core/src/java/org/apache/lucene/util/fst/FST.java +++ b/lucene/core/src/java/org/apache/lucene/util/fst/FST.java @@ -1619,7 +1619,9 @@ public final class FST { absPtr = 0; } + assert flags != ARCS_AS_FIXED_ARRAY; buffer.writeByte(flags); + fst.writeLabel(buffer, arc.label); if (arc.output != NO_OUTPUT) {