Skip to content

Apache Lucene open-source search software

Unify the spelling of bytesStart in the code (#15776)

tyronecai665717296595
diff --git a/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java b/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java
index 5d93426e8a2..6c13273263c 100644
--- a/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java
+++ b/lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java
@@ -333,7 +333,7 @@ public final class BytesRefHash implements Accountable {
* ByteBlockPool#BYTE_BLOCK_SIZE}
*/
public int add(BytesRef bytes) {
- assert bytesStart != null : "Bytesstart is null - not initialized";
+ assert bytesStart != null : "bytesStart is null - not initialized";
final int hashcode = doHash(bytes.bytes, bytes.offset, bytes.length);
// final position
final int hashPos = findHash(bytes, hashcode);
@@ -400,7 +400,7 @@ public final class BytesRefHash implements Accountable {
* textStart) in TermsHashPerField.
*/
public int addByPoolOffset(int offset) {
- assert bytesStart != null : "Bytesstart is null - not initialized";
+ assert bytesStart != null : "bytesStart is null - not initialized";
// final position
int code = offset;
int hashPos = offset & hashMask;