@@ -387,13 +387,6 @@ private static boolean flag(int flags, int bit) {
387387 return (flags & bit ) != 0 ;
388388 }
389389
390- // make a new FST; Builder invokes this
391- FST (FSTMetadata <T > metadata , Outputs <T > outputs , FSTReader fstReader ) {
392- this .metadata = metadata ;
393- this .outputs = outputs ;
394- this .fstReader = fstReader ;
395- }
396-
397390 private static final int DEFAULT_MAX_BLOCK_BITS = Constants .JRE_IS_64BIT ? 30 : 28 ;
398391
399392 /**
@@ -415,7 +408,7 @@ public FST(DataInput metaIn, DataInput in, Outputs<T> outputs, FSTStore fstStore
415408 }
416409
417410 /**
418- * Load a previously saved FST with a metadata object and a FSTStore. If using {@link
411+ * Load a previously saved FST with a metdata object and a FSTStore. If using {@link
419412 * OnHeapFSTStore}, setting maxBlockBits allows you to control the size of the byte[] pages used
420413 * to hold the FST bytes.
421414 */
@@ -424,8 +417,15 @@ public FST(FSTMetadata<T> metadata, DataInput in, Outputs<T> outputs, FSTStore f
424417 this (metadata , outputs , fstStore .init (in , metadata .numBytes ));
425418 }
426419
420+ /** Create the FST with a metadata object and a FSTReader. */
421+ FST (FSTMetadata <T > metadata , Outputs <T > outputs , FSTReader fstReader ) {
422+ this .metadata = metadata ;
423+ this .outputs = outputs ;
424+ this .fstReader = fstReader ;
425+ }
426+
427427 /**
428- * Parse the FST metadata from DataInput
428+ * Read the FST metadata from DataInput
429429 *
430430 * @param metaIn the DataInput of the metadata
431431 * @param outputs the FST outputs
0 commit comments