From: Ivan Frade Date: Mon, 1 Apr 2024 19:58:27 +0000 (-0700) Subject: DfsPackFile: make public the constructor with bitmap loader X-Git-Tag: v6.10.0.202405212237-m3~54 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=33cacadbcef111c34a6f6927fcb8212fb07d6522;p=jgit.git DfsPackFile: make public the constructor with bitmap loader The constructor with the bitmap loader as a parameter is supposed to be used from subclasses in the ObjectDatabase, but those subclasses cannot see it with its current package-private visibility. Make it public, so it can be used as intended. Change-Id: I4afca3d2a13c4a41a766d08c5aa54bde352915a6 --- diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java index 2e534d580f..9095ce2542 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java @@ -115,7 +115,18 @@ public final class DfsPackFile extends BlockBasedFile { this(cache, desc, DEFAULT_BITMAP_LOADER); } - DfsPackFile(DfsBlockCache cache, DfsPackDescription desc, PackBitmapIndexLoader bitmapLoader) { + /** + * Create an instance of DfsPackFile with a custom bitmap loader + * + * @param cache + * cache that owns the pack data + * @param desc + * description of the pack within the DFS + * @param bitmapLoader + * loader to get the bitmaps of this pack (if any) + */ + public DfsPackFile(DfsBlockCache cache, DfsPackDescription desc, + PackBitmapIndexLoader bitmapLoader) { super(cache, desc, PACK); int bs = desc.getBlockSize(PACK);