MINOR: Make `forceUnmap` method protected (#18638)

Reviewers: Divij Vaidya <diviv@amazon.com>
This commit is contained in:
Pramithas Dhakal 2025-01-23 16:24:45 +05:45 committed by GitHub
parent bc807083fb
commit 27552e7b11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -399,8 +399,8 @@ public abstract class AbstractIndex implements Closeable {
/** /**
* Forcefully free the buffer's mmap. * Forcefully free the buffer's mmap.
*/ */
// Visible for testing, we can make this protected once OffsetIndexTest is in the same package as this class // Visible for testing
public void forceUnmap() throws IOException { protected void forceUnmap() throws IOException {
try { try {
ByteBufferUnmapper.unmap(file.getAbsolutePath(), mmap); ByteBufferUnmapper.unmap(file.getAbsolutePath(), mmap);
} finally { } finally {