]> source.dussan.org Git - jgit.git/commit
DfsPackFile: make #getReverseIdx public 52/202752/1
authorAnna Papitto <annapapitto@google.com>
Tue, 27 Jun 2023 20:22:20 +0000 (13:22 -0700)
committerAnna Papitto <annapapitto@google.com>
Tue, 27 Jun 2023 20:25:29 +0000 (13:25 -0700)
commit91b23cc552c1038cf6e37d256ebb47eb83a8a5f6
tree83cfccf0d056c9b26ce8269a98e50b1d062f7512
parent55230e2b958c3fbc8fd7d31a28fdf44537bba305
DfsPackFile: make #getReverseIdx public

The DfsPackFile#getReverseIdx method, which wraps creating a
PackReverseIndex in caching, was package-private. This caused
implementations on top of DfsPackFile to directly instantiate a
PackReverseIndex in cases where it would benefit from caching.

Instead, make #getReverseIdx public so that the caching logic can be
reused by implementations where appropriate.

Change-Id: I4553e514a4ac320bfe2455c00023343ad97f9d15
Signed-off-by: Anna Papitto <annapapitto@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java