From 9919a9faaf9865ff799c657eb77dd8014d410b40 Mon Sep 17 00:00:00 2001 From: Ivan Frade Date: Fri, 18 Aug 2023 11:22:35 -0700 Subject: [PATCH] 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 --- .../org/eclipse/jgit/internal/storage/dfs/DfsReader.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsReader.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsReader.java index 16344068e..3f0adcba1 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsReader.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsReader.java @@ -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 */