diff --git a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/dict/TokenInfoDictionary.java b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/dict/TokenInfoDictionary.java index 7fd5a9244c1..ac2520f5b62 100644 --- a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/dict/TokenInfoDictionary.java +++ b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/dict/TokenInfoDictionary.java @@ -111,7 +111,7 @@ public final class TokenInfoDictionary extends BinaryDictionary implements Accountable { } /** - * Represent the FST metadata + * Represents the FST metadata. * * @param the FST output type */ @@ -1236,5 +1236,14 @@ public final class FST implements Accountable { this.version = version; this.numBytes = numBytes; } + + /** + * Returns the version constant of the binary format this FST was written in. See the {@code + * static final int VERSION} constants in FST's javadoc, e.g. {@link + * FST#VERSION_CONTINUOUS_ARCS}. + */ + public int getVersion() { + return version; + } } }