]> source.dussan.org Git - jgit.git/commitdiff
DfsPackFile: make public the constructor with bitmap loader 69/1190169/2
authorIvan Frade <ifrade@google.com>
Mon, 1 Apr 2024 19:58:27 +0000 (12:58 -0700)
committerIvan Frade <ifrade@google.com>
Mon, 1 Apr 2024 20:39:38 +0000 (13:39 -0700)
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

org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java

index 2e534d580f59597514c843555afa853376642b4c..9095ce2542a04e05737b067edff84fca961c0b11 100644 (file)
@@ -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);