Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LUCENE-10366: Override #readVInt and #readVLong for ByteBufferDataInput to avoid the abstraction confusion of #readByte. #592

Merged
merged 20 commits into from
Jan 16, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,18 @@ public final int readInt() throws IOException {
}
}

@Override
public final int readVInt() throws IOException {
// this can make JVM less confusing (see LUCENE-10366)
return super.readVInt();
}

@Override
public final long readVLong() throws IOException {
// this can make JVM less confusing (see LUCENE-10366)
return super.readVLong();
}

@Override
public final long readLong() throws IOException {
try {
Expand Down