Fix comment on decode method in PForUtil (#12495)

* Fix comment on decode method.

* Fix comment on decode method(lucene84).
This commit is contained in:
zhouhui 2023-11-02 22:34:52 +08:00 committed by GitHub
parent 30db217048
commit 2d50c345fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ public final class PForUtil {
out.writeBytes(exceptions, exceptions.length); out.writeBytes(exceptions, exceptions.length);
} }
/** Decode 128 integers into {@code ints}. */ /** Decode 128 integers into {@code longs}. */
void decode(DataInput in, long[] longs) throws IOException { void decode(DataInput in, long[] longs) throws IOException {
final int token = Byte.toUnsignedInt(in.readByte()); final int token = Byte.toUnsignedInt(in.readByte());
final int bitsPerValue = token & 0x1f; final int bitsPerValue = token & 0x1f;

View File

@ -116,7 +116,7 @@ final class PForUtil {
out.writeBytes(exceptions, exceptions.length); out.writeBytes(exceptions, exceptions.length);
} }
/** Decode 128 integers into {@code ints}. */ /** Decode 128 integers into {@code longs}. */
void decode(DataInput in, long[] longs) throws IOException { void decode(DataInput in, long[] longs) throws IOException {
final int token = Byte.toUnsignedInt(in.readByte()); final int token = Byte.toUnsignedInt(in.readByte());
final int bitsPerValue = token & 0x1f; final int bitsPerValue = token & 0x1f;