DfsReader: Make PackLoadListener interface visible to subclasses

A subclass cannot implement a listener with the default access.

Make the interface protected. Not public because so far only
subclasses are interested in this interface. We can widen the
visibility later if needed.

Change-Id: I54e5c0ef1312dfe2fa660bc8fb54e2be35c0f6df
This commit is contained in:
Ivan Frade 2023-08-18 11:22:35 -07:00
parent 6f73336939
commit 9919a9faaf
1 changed files with 4 additions and 4 deletions

View File

@ -839,7 +839,7 @@ public DfsReaderIoStats getIoStats() {
}
/** Announces when data is loaded by reader */
interface PackLoadListener {
protected interface PackLoadListener {
/**
* Immutable copy of a DFS block metadata
*/
@ -856,11 +856,11 @@ private DfsBlockData(DfsBlock src) {
this.size = src.size();
}
int getIdentityHash() {
public int getIdentityHash() {
return identityHash;
}
int getSize() {
public int getSize() {
return size;
}
}
@ -900,7 +900,7 @@ void onIndexLoad(String packName, PackSource src, PackExt ext, long size,
* @param ext
* Extension in the pack (e.g. PACK or REFTABLE)
* @param position
* Block offset being loaded
* Offset in the file requested by caller
* @param dfsBlockData
* Metadata of the block
*/