diff options
author | Ivan Frade <ifrade@google.com> | 2024-04-01 12:58:27 -0700 |
---|---|---|
committer | Ivan Frade <ifrade@google.com> | 2024-04-01 13:39:38 -0700 |
commit | 33cacadbcef111c34a6f6927fcb8212fb07d6522 (patch) | |
tree | 97e229a83d4c23bf4342ade1b19467a34b286642 | |
parent | 82b224c0d109d4debe765f7c2ee5f220694eca58 (diff) | |
download | jgit-33cacadbcef111c34a6f6927fcb8212fb07d6522.tar.gz jgit-33cacadbcef111c34a6f6927fcb8212fb07d6522.zip |
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
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java | 13 |
1 files changed, 12 insertions, 1 deletions
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); |