Skip to content

Commit f0b78d2

Browse files
committed
Add comment &
1 parent 2587fc7 commit f0b78d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lucene/core/src/java/org/apache/lucene/util/fst/FSTCompiler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private FSTCompiler(
177177
}
178178

179179
// Get the respective FSTReader of the DataOutput. If the DataOutput is also a FSTReader then we
180-
// will use it. Otherwise, we will use NullFSTReader, which does not allow reading.
180+
// will use it, otherwise we will return null.
181181
private FSTReader toFSTReader(DataOutput dataOutput) {
182182
if (dataOutput instanceof FSTReader) {
183183
return (FSTReader) dataOutput;
@@ -286,6 +286,7 @@ public Builder<T> directAddressingMaxOversizingFactor(float factor) {
286286

287287
/** Creates a new {@link FSTCompiler}. */
288288
public FSTCompiler<T> build() {
289+
// TODO: throw the IOException instead of catching it
289290
try {
290291
return new FSTCompiler<>(
291292
inputType,

0 commit comments

Comments
 (0)