Apache Lucene open-source search software
typo police
Robert Muir3a76e3a8f59a
diff --git a/lucene/src/java/org/apache/lucene/analysis/NumericTokenStream.java b/lucene/src/java/org/apache/lucene/analysis/NumericTokenStream.javaindex 502c3a214ac..b98a24646ca 100644--- a/lucene/src/java/org/apache/lucene/analysis/NumericTokenStream.java+++ b/lucene/src/java/org/apache/lucene/analysis/NumericTokenStream.java@@ -135,7 +135,7 @@ public final class NumericTokenStream extends TokenStream {}}- /** Implementatation of {@link NumericTermAttribute}.+ /** Implementation of {@link NumericTermAttribute}.* @lucene.internal* @since 4.0*/diff --git a/lucene/src/java/org/apache/lucene/analysis/package.html b/lucene/src/java/org/apache/lucene/analysis/package.htmlindex d98f84f5d66..28569e483ba 100644--- a/lucene/src/java/org/apache/lucene/analysis/package.html+++ b/lucene/src/java/org/apache/lucene/analysis/package.html@@ -305,7 +305,7 @@ with the TokenStream.<li>Attribute instances are reused for all tokens of a document. Thus, a TokenStream/-Filter needs to updatethe appropriate Attribute(s) in incrementToken(). The consumer, commonly the Lucene indexer, consumes the data in the-Attributes and then calls incrementToken() again until it retuns false, which indicates that the end of the stream+Attributes and then calls incrementToken() again until it returns false, which indicates that the end of the streamwas reached. This means that in each call of incrementToken() a TokenStream/-Filter can safely overwrite the data inthe Attribute instances.</li>diff --git a/lucene/src/java/org/apache/lucene/document/AbstractField.java b/lucene/src/java/org/apache/lucene/document/AbstractField.javaindex 35287d882d4..a3f880c7357 100755--- a/lucene/src/java/org/apache/lucene/document/AbstractField.java+++ b/lucene/src/java/org/apache/lucene/document/AbstractField.java@@ -77,7 +77,7 @@ public abstract class AbstractField implements Fieldable {* used to compute the norm factor for the field. By* default, in the {@link* org.apache.lucene.search.Similarity#computeNorm(String,- * FieldInvertState)} method, the boost value is multipled+ * FieldInvertState)} method, the boost value is multiplied* by the {@link* org.apache.lucene.search.Similarity#lengthNorm(String,* int)} and thendiff --git a/lucene/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.java b/lucene/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.javaindex 1927235cdce..b9cafc7c5c2 100644--- a/lucene/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.java+++ b/lucene/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.java@@ -145,7 +145,7 @@ public class ConcurrentMergeScheduler extends MergeScheduler {/*** Called whenever the running merges have changed, to pause & unpause* threads. This method sorts the merge threads by their merge size in- * descending order and then pauses/unpauses threads from first to lsat --+ * descending order and then pauses/unpauses threads from first to last --* that way, smaller merges are guaranteed to run before larger ones.*/protected synchronized void updateMergeThreads() {diff --git a/lucene/src/java/org/apache/lucene/index/IndexFileNames.java b/lucene/src/java/org/apache/lucene/index/IndexFileNames.javaindex 26be89baf0f..d8a5a878203 100644--- a/lucene/src/java/org/apache/lucene/index/IndexFileNames.java+++ b/lucene/src/java/org/apache/lucene/index/IndexFileNames.java@@ -204,7 +204,7 @@ public final class IndexFileNames {/*** Returns true if the given filename ends with the given extension. One- * should provide a <i>pure</i> extension, withouth '.'.+ * should provide a <i>pure</i> extension, without '.'.*/public static boolean matchesExtension(String filename, String ext) {// It doesn't make a difference whether we allocate a StringBuilder ourselfdiff --git a/lucene/src/java/org/apache/lucene/index/IndexNotFoundException.java b/lucene/src/java/org/apache/lucene/index/IndexNotFoundException.javaindex 5e7107448b8..dc0a6fa0d1e 100644--- a/lucene/src/java/org/apache/lucene/index/IndexNotFoundException.java+++ b/lucene/src/java/org/apache/lucene/index/IndexNotFoundException.java@@ -21,7 +21,7 @@ import java.io.FileNotFoundException;/*** Signals that no index was found in the Directory. Possibly because the- * directory is empty, however can slso indicate an index corruption.+ * directory is empty, however can also indicate an index corruption.*/public final class IndexNotFoundException extends FileNotFoundException {diff --git a/lucene/src/java/org/apache/lucene/index/IndexWriter.java b/lucene/src/java/org/apache/lucene/index/IndexWriter.javaindex 666ca8231d1..3eaea73a36f 100644--- a/lucene/src/java/org/apache/lucene/index/IndexWriter.java+++ b/lucene/src/java/org/apache/lucene/index/IndexWriter.java@@ -686,7 +686,7 @@ public class IndexWriter implements Closeable {* according <code>conf.getOpenMode()</code>.* @param conf* the configuration settings according to which IndexWriter should- * be initalized.+ * be initialized.* @throws CorruptIndexException* if the index is corrupt* @throws LockObtainFailedException@@ -2463,7 +2463,7 @@ public class IndexWriter implements Closeable {}/**- * Flush all in-memory buffered udpates (adds and deletes)+ * Flush all in-memory buffered updates (adds and deletes)* to the Directory.* @param triggerMerge if true, we may merge segments (if* deletes or docs were flushed) if necessarydiff --git a/lucene/src/java/org/apache/lucene/index/NoMergeScheduler.java b/lucene/src/java/org/apache/lucene/index/NoMergeScheduler.javaindex 158abe842ce..e98723b55b3 100644--- a/lucene/src/java/org/apache/lucene/index/NoMergeScheduler.java+++ b/lucene/src/java/org/apache/lucene/index/NoMergeScheduler.java@@ -23,7 +23,7 @@ import java.io.IOException;* A {@link MergeScheduler} which never executes any merges. It is also a* singleton and can be accessed through {@link NoMergeScheduler#INSTANCE}. Use* it if you want to prevent an {@link IndexWriter} from ever executing merges,- * irregardles of the {@link MergePolicy} used. Note that you can achieve the+ * irregardless of the {@link MergePolicy} used. Note that you can achieve the* same thing by using {@link NoMergePolicy}, however with* {@link NoMergeScheduler} you also ensure that no unnecessary code of any* {@link MergeScheduler} implementation is ever executed. Hence it isdiff --git a/lucene/src/java/org/apache/lucene/index/PayloadProcessorProvider.java b/lucene/src/java/org/apache/lucene/index/PayloadProcessorProvider.javaindex e9fe11adfb8..bf825c1dacd 100644--- a/lucene/src/java/org/apache/lucene/index/PayloadProcessorProvider.java+++ b/lucene/src/java/org/apache/lucene/index/PayloadProcessorProvider.java@@ -24,7 +24,7 @@ import org.apache.lucene.util.BytesRef;/*** Provides a {@link DirPayloadProcessor} to be used for a {@link Directory}.- * This allows using differnt {@link DirPayloadProcessor}s for different+ * This allows using different {@link DirPayloadProcessor}s for different* directories, for e.g. to perform different processing of payloads of* different directories.* <p>diff --git a/lucene/src/java/org/apache/lucene/index/PerFieldCodecWrapper.java b/lucene/src/java/org/apache/lucene/index/PerFieldCodecWrapper.javaindex 51c92321f54..cea213aca35 100644--- a/lucene/src/java/org/apache/lucene/index/PerFieldCodecWrapper.java+++ b/lucene/src/java/org/apache/lucene/index/PerFieldCodecWrapper.java@@ -214,7 +214,7 @@ final class PerFieldCodecWrapper extends Codec {@Overridepublic void files(Directory dir, SegmentInfo info, String codecId, Set<String> files)throws IOException {- // ignore codecid sicne segmentCodec will assign it per codec+ // ignore codecid since segmentCodec will assign it per codecsegmentCodecs.files(dir, info, files);}diff --git a/lucene/src/java/org/apache/lucene/index/PersistentSnapshotDeletionPolicy.java b/lucene/src/java/org/apache/lucene/index/PersistentSnapshotDeletionPolicy.javaindex fc09266c377..f4869ea926a 100644--- a/lucene/src/java/org/apache/lucene/index/PersistentSnapshotDeletionPolicy.java+++ b/lucene/src/java/org/apache/lucene/index/PersistentSnapshotDeletionPolicy.java@@ -103,7 +103,7 @@ public class PersistentSnapshotDeletionPolicy extends SnapshotDeletionPolicy {* @param mode* specifies whether a new index should be created, deleting all* existing snapshots information (immediately), or open an existing- * index, initializing the class with the snapsthots information.+ * index, initializing the class with the snapshots information.* @param matchVersion* specifies the {@link Version} that should be used when opening the* IndexWriter.diff --git a/lucene/src/java/org/apache/lucene/index/codecs/FixedGapTermsIndexReader.java b/lucene/src/java/org/apache/lucene/index/codecs/FixedGapTermsIndexReader.javaindex aba1e76cb10..c4350694cb0 100644--- a/lucene/src/java/org/apache/lucene/index/codecs/FixedGapTermsIndexReader.java+++ b/lucene/src/java/org/apache/lucene/index/codecs/FixedGapTermsIndexReader.java@@ -44,7 +44,7 @@ public class FixedGapTermsIndexReader extends TermsIndexReaderBase {// number of places to multiply out the actual ord, and we// will overflow int during those multiplies. So to avoid// having to upgrade each multiple to long in multiple- // places (error proned), we use long here:+ // places (error prone), we use long here:private long totalIndexInterval;private int indexDivisor;diff --git a/lucene/src/java/org/apache/lucene/index/codecs/preflex/PreFlexFields.java b/lucene/src/java/org/apache/lucene/index/codecs/preflex/PreFlexFields.javaindex f7bbef7906c..65b7460f782 100644--- a/lucene/src/java/org/apache/lucene/index/codecs/preflex/PreFlexFields.java+++ b/lucene/src/java/org/apache/lucene/index/codecs/preflex/PreFlexFields.java@@ -538,7 +538,7 @@ public class PreFlexFields extends FieldsProducer {// We can easily detect S in UTF8: if a byte has// prefix 11110 (0xf0), then that byte and the// following 3 bytes encode a single unicode codepoint- // in S. Similary,we can detect E: if a byte has+ // in S. Similarly, we can detect E: if a byte has// prefix 1110111 (0xee), then that byte and the// following 2 bytes encode a single unicode codepoint// in E.diff --git a/lucene/src/java/org/apache/lucene/index/codecs/preflex/SegmentTermEnum.java b/lucene/src/java/org/apache/lucene/index/codecs/preflex/SegmentTermEnum.javaindex a8703ae83f1..fb7c8ceec46 100644--- a/lucene/src/java/org/apache/lucene/index/codecs/preflex/SegmentTermEnum.java+++ b/lucene/src/java/org/apache/lucene/index/codecs/preflex/SegmentTermEnum.java@@ -45,7 +45,7 @@ public final class SegmentTermEnum implements Cloneable {// whenever you add a new format, make it 1 smaller (negative version logic)!public static final int FORMAT_CURRENT = FORMAT_VERSION_UTF8_LENGTH_IN_BYTES;- // when removing support for old versions, levae the last supported version here+ // when removing support for old versions, leave the last supported version herepublic static final int FORMAT_MINIMUM = FORMAT_VERSION_UTF8_LENGTH_IN_BYTES;private TermBuffer termBuffer = new TermBuffer();diff --git a/lucene/src/java/org/apache/lucene/search/BoostAttribute.java b/lucene/src/java/org/apache/lucene/search/BoostAttribute.javaindex e9187a85445..58f44633b8d 100644--- a/lucene/src/java/org/apache/lucene/search/BoostAttribute.java+++ b/lucene/src/java/org/apache/lucene/search/BoostAttribute.java@@ -27,7 +27,7 @@ import org.apache.lucene.index.TermsEnum; // javadocs only* {@link TopTermsRewrite} mode.* {@link FuzzyQuery} is using this to take the edit distance into account.* <p><b>Please note:</b> This attribute is intended to be added only by the TermsEnum- * to itsself in its constructor and consumed by the {@link MultiTermQuery.RewriteMethod}.+ * to itself in its constructor and consumed by the {@link MultiTermQuery.RewriteMethod}.* @lucene.internal*/public interface BoostAttribute extends Attribute {diff --git a/lucene/src/java/org/apache/lucene/search/IndexSearcher.java b/lucene/src/java/org/apache/lucene/search/IndexSearcher.javaindex cd1dd0a208e..6e885c003ff 100644--- a/lucene/src/java/org/apache/lucene/search/IndexSearcher.java+++ b/lucene/src/java/org/apache/lucene/search/IndexSearcher.java@@ -787,7 +787,7 @@ public class IndexSearcher {}public Iterator<T> iterator() {- // use the shortcut here - this is only used in a privat context+ // use the shortcut here - this is only used in a private contextreturn this;}}diff --git a/lucene/src/java/org/apache/lucene/search/MultiCollector.java b/lucene/src/java/org/apache/lucene/search/MultiCollector.javaindex 08e08403d33..682413d7a18 100644--- a/lucene/src/java/org/apache/lucene/search/MultiCollector.java+++ b/lucene/src/java/org/apache/lucene/search/MultiCollector.java@@ -26,7 +26,7 @@ import org.apache.lucene.search.Scorer;/*** A {@link Collector} which allows running a search with several* {@link Collector}s. It offers a static {@link #wrap} method which accepts a- * list of collectots and wraps them with {@link MultiCollector}, while+ * list of collectors and wraps them with {@link MultiCollector}, while* filtering out the <code>null</code> null ones.*/public class MultiCollector extends Collector {diff --git a/lucene/src/java/org/apache/lucene/search/SortField.java b/lucene/src/java/org/apache/lucene/search/SortField.javaindex e058002f374..663261ebd59 100644--- a/lucene/src/java/org/apache/lucene/search/SortField.java+++ b/lucene/src/java/org/apache/lucene/search/SortField.java@@ -36,7 +36,7 @@ import org.apache.lucene.util.StringHelper;public class SortFieldimplements Serializable {- /** Sort by document score (relevancy). Sort values are Float and higher+ /** Sort by document score (relevance). Sort values are Float and higher* values are at the front. */public static final int SCORE = 0;@@ -84,7 +84,7 @@ implements Serializable {* uses ordinals to do the sorting. */public static final int STRING_VAL = 11;- /** Represents sorting by document score (relevancy). */+ /** Represents sorting by document score (relevance). */public static final SortField FIELD_SCORE = new SortField (null, SCORE);/** Represents sorting by document number (index order). */diff --git a/lucene/src/java/org/apache/lucene/search/TopTermsRewrite.java b/lucene/src/java/org/apache/lucene/search/TopTermsRewrite.javaindex b75ec16b57a..472e99de705 100644--- a/lucene/src/java/org/apache/lucene/search/TopTermsRewrite.java+++ b/lucene/src/java/org/apache/lucene/search/TopTermsRewrite.java@@ -87,7 +87,7 @@ public abstract class TopTermsRewrite<Q extends Query> extends TermCollectingRew@Overridepublic boolean collect(BytesRef bytes) throws IOException {final float boost = boostAtt.getBoost();- // ignore uncompetetive hits+ // ignore uncompetitive hitsif (stQueue.size() == maxSize) {final ScoreTerm t = stQueue.peek();if (boost < t.boost)diff --git a/lucene/src/java/org/apache/lucene/search/function/CustomScoreQuery.java b/lucene/src/java/org/apache/lucene/search/function/CustomScoreQuery.javaindex 8f29cbe1955..8a5ba9abf41 100755--- a/lucene/src/java/org/apache/lucene/search/function/CustomScoreQuery.java+++ b/lucene/src/java/org/apache/lucene/search/function/CustomScoreQuery.java@@ -52,7 +52,7 @@ public class CustomScoreQuery extends Query {/*** Create a CustomScoreQuery over input subQuery.- * @param subQuery the sub query whose scored is being customed. Must not be null.+ * @param subQuery the sub query whose scored is being customized. Must not be null.*/public CustomScoreQuery(Query subQuery) {this(subQuery, new ValueSourceQuery[0]);diff --git a/lucene/src/java/org/apache/lucene/store/FSLockFactory.java b/lucene/src/java/org/apache/lucene/store/FSLockFactory.javaindex bd705892adf..1bca363b088 100644--- a/lucene/src/java/org/apache/lucene/store/FSLockFactory.java+++ b/lucene/src/java/org/apache/lucene/store/FSLockFactory.java@@ -33,7 +33,7 @@ public abstract class FSLockFactory extends LockFactory {/*** Set the lock directory. This method can be only called* once to initialize the lock directory. It is used by {@link FSDirectory}- * to set the lock directory to itsself.+ * to set the lock directory to itself.* Subclasses can also use this method to set the directory* in the constructor.*/diff --git a/lucene/src/java/org/apache/lucene/store/NativeFSLockFactory.java b/lucene/src/java/org/apache/lucene/store/NativeFSLockFactory.javaindex 53c30a65651..f4f63e6d2fc 100755--- a/lucene/src/java/org/apache/lucene/store/NativeFSLockFactory.java+++ b/lucene/src/java/org/apache/lucene/store/NativeFSLockFactory.java@@ -60,7 +60,7 @@ public class NativeFSLockFactory extends FSLockFactory {* Create a NativeFSLockFactory instance, with null (unset)* lock directory. When you pass this factory to a {@link FSDirectory}* subclass, the lock directory is automatically set to the- * directory itsself. Be sure to create one instance for each directory+ * directory itself. Be sure to create one instance for each directory* your create!*/public NativeFSLockFactory() throws IOException {diff --git a/lucene/src/java/org/apache/lucene/store/SimpleFSLockFactory.java b/lucene/src/java/org/apache/lucene/store/SimpleFSLockFactory.javaindex dc8d73fe390..1f532aa509f 100755--- a/lucene/src/java/org/apache/lucene/store/SimpleFSLockFactory.java+++ b/lucene/src/java/org/apache/lucene/store/SimpleFSLockFactory.java@@ -57,7 +57,7 @@ public class SimpleFSLockFactory extends FSLockFactory {* Create a SimpleFSLockFactory instance, with null (unset)* lock directory. When you pass this factory to a {@link FSDirectory}* subclass, the lock directory is automatically set to the- * directory itsself. Be sure to create one instance for each directory+ * directory itself. Be sure to create one instance for each directory* your create!*/public SimpleFSLockFactory() throws IOException {diff --git a/lucene/src/java/org/apache/lucene/util/ArrayUtil.java b/lucene/src/java/org/apache/lucene/util/ArrayUtil.javaindex 50e04ac93d1..c9c0f149b21 100644--- a/lucene/src/java/org/apache/lucene/util/ArrayUtil.java+++ b/lucene/src/java/org/apache/lucene/util/ArrayUtil.java@@ -634,7 +634,7 @@ public final class ArrayUtil {/*** Sorts the given array slice using the {@link Comparator}. This method uses the insertion sort- * algorithm. It is only recommened to use this algorithm for partially sorted small arrays!+ * algorithm. It is only recommended to use this algorithm for partially sorted small arrays!* @param fromIndex start index (inclusive)* @param toIndex end index (exclusive)*/@@ -644,7 +644,7 @@ public final class ArrayUtil {/*** Sorts the given array using the {@link Comparator}. This method uses the insertion sort- * algorithm. It is only recommened to use this algorithm for partially sorted small arrays!+ * algorithm. It is only recommended to use this algorithm for partially sorted small arrays!*/public static <T> void insertionSort(T[] a, Comparator<? super T> comp) {insertionSort(a, 0, a.length, comp);@@ -652,7 +652,7 @@ public final class ArrayUtil {/*** Sorts the given array slice in natural order. This method uses the insertion sort- * algorithm. It is only recommened to use this algorithm for partially sorted small arrays!+ * algorithm. It is only recommended to use this algorithm for partially sorted small arrays!* @param fromIndex start index (inclusive)* @param toIndex end index (exclusive)*/@@ -662,7 +662,7 @@ public final class ArrayUtil {/*** Sorts the given array in natural order. This method uses the insertion sort- * algorithm. It is only recommened to use this algorithm for partially sorted small arrays!+ * algorithm. It is only recommended to use this algorithm for partially sorted small arrays!*/public static <T extends Comparable<? super T>> void insertionSort(T[] a) {insertionSort(a, 0, a.length);diff --git a/lucene/src/java/org/apache/lucene/util/BytesRefHash.java b/lucene/src/java/org/apache/lucene/util/BytesRefHash.javaindex 70b46228311..2a0367ae231 100644--- a/lucene/src/java/org/apache/lucene/util/BytesRefHash.java+++ b/lucene/src/java/org/apache/lucene/util/BytesRefHash.java@@ -38,7 +38,7 @@ import org.apache.lucene.util.ByteBlockPool.DirectAllocator;* <p>* Note: The maximum capacity {@link BytesRef} instance passed to* {@link #add(BytesRef)} must not be longer than {@link ByteBlockPool#BYTE_BLOCK_SIZE}-2.- * The internal storage is limited to 2GB totalbyte storage.+ * The internal storage is limited to 2GB total byte storage.* </p>** @lucene.internaldiff --git a/lucene/src/java/org/apache/lucene/util/CollectionUtil.java b/lucene/src/java/org/apache/lucene/util/CollectionUtil.javaindex 7e60fd19b43..ff2a76a6b87 100644--- a/lucene/src/java/org/apache/lucene/util/CollectionUtil.java+++ b/lucene/src/java/org/apache/lucene/util/CollectionUtil.java@@ -140,7 +140,7 @@ public final class CollectionUtil {/*** Sorts the given random access {@link List} using the {@link Comparator}.* The list must implement {@link RandomAccess}. This method uses the insertion sort- * algorithm. It is only recommened to use this algorithm for partially sorted small lists!+ * algorithm. It is only recommended to use this algorithm for partially sorted small lists!* @throws IllegalArgumentException if list is e.g. a linked list without random access.*/public static <T> void insertionSort(List<T> list, Comparator<? super T> comp) {@@ -150,7 +150,7 @@ public final class CollectionUtil {/*** Sorts the given random access {@link List} in natural order.* The list must implement {@link RandomAccess}. This method uses the insertion sort- * algorithm. It is only recommened to use this algorithm for partially sorted small lists!+ * algorithm. It is only recommended to use this algorithm for partially sorted small lists!* @throws IllegalArgumentException if list is e.g. a linked list without random access.*/public static <T extends Comparable<? super T>> void insertionSort(List<T> list) {diff --git a/lucene/src/java/org/apache/lucene/util/DoubleBarrelLRUCache.java b/lucene/src/java/org/apache/lucene/util/DoubleBarrelLRUCache.javaindex cdb958ef252..a476bd2b0f8 100644--- a/lucene/src/java/org/apache/lucene/util/DoubleBarrelLRUCache.java+++ b/lucene/src/java/org/apache/lucene/util/DoubleBarrelLRUCache.java@@ -74,7 +74,7 @@ final public class DoubleBarrelLRUCache<K extends DoubleBarrelLRUCache.Cloneablesecondary = cache2;}- // Try primary frist+ // Try primary firstV result = primary.get(key);if (result == null) {// Not found -- try secondarydiff --git a/lucene/src/java/org/apache/lucene/util/IOUtils.java b/lucene/src/java/org/apache/lucene/util/IOUtils.javaindex b31f3b00aac..659c3c0c044 100644--- a/lucene/src/java/org/apache/lucene/util/IOUtils.java+++ b/lucene/src/java/org/apache/lucene/util/IOUtils.java@@ -34,7 +34,7 @@ public final class IOUtils {* Closeable resource1 = null, resource2 = null, resource3 = null;* ExpectedException priorE = null;* try {- * resource1 = ...; resource2 = ...; resource3 = ...; // Aquisition may throw ExpectedException+ * resource1 = ...; resource2 = ...; resource3 = ...; // Acquisition may throw ExpectedException* ..do..stuff.. // May throw ExpectedException* } catch (ExpectedException e) {* priorE = e;diff --git a/lucene/src/java/org/apache/lucene/util/SetOnce.java b/lucene/src/java/org/apache/lucene/util/SetOnce.javaindex 3366b3cb918..f280ee78522 100644--- a/lucene/src/java/org/apache/lucene/util/SetOnce.java+++ b/lucene/src/java/org/apache/lucene/util/SetOnce.java@@ -49,7 +49,7 @@ public final class SetOnce<T> {}/**- * Creates a new instnace with the internal object set to the given object.+ * Creates a new instance with the internal object set to the given object.* Note that any calls to {@link #set(Object)} afterwards will result in* {@link AlreadySetException}*diff --git a/lucene/src/java/org/apache/lucene/util/automaton/fst/FST.java b/lucene/src/java/org/apache/lucene/util/automaton/fst/FST.javaindex e94f9e544fa..1d25d0a8f8a 100644--- a/lucene/src/java/org/apache/lucene/util/automaton/fst/FST.java+++ b/lucene/src/java/org/apache/lucene/util/automaton/fst/FST.java@@ -490,7 +490,7 @@ public class FST<T> {}}- // Not private beacaus NodeHash needs access:+ // Not private because NodeHash needs access:Arc<T> readFirstRealArc(int address, Arc<T> arc) throws IOException {final BytesReader in = getBytesReader(address);diff --git a/lucene/src/java/org/apache/lucene/util/packed/PackedInts.java b/lucene/src/java/org/apache/lucene/util/packed/PackedInts.javaindex 71d525d2b0b..c7f670c6eaa 100644--- a/lucene/src/java/org/apache/lucene/util/packed/PackedInts.java+++ b/lucene/src/java/org/apache/lucene/util/packed/PackedInts.java@@ -251,7 +251,7 @@ public class PackedInts {/** Returns how many bits are required to hold values up* to and including maxValue- * @param maxValue the maximum value tha should be representable.+ * @param maxValue the maximum value that should be representable.* @return the amount of bits needed to represent values from 0 to maxValue.* @lucene.internal*/