Skip to content

Commit 4ea413d

Browse files
BlameCacheImpl: making loadRegions() public
Making loadRegions() public will give us more customization options by allowing us to pass in any form of pre-determined BlameGenerator. Since this is a static method, no state is recorded within the BlameCacheImpl object, this should be a no-op. Change-Id: I8f684bcda237ca849743a2fde3a3b8cc9955eabe Signed-off-by: Xing Huang <xingkhuang@google.com>
1 parent 386712e commit 4ea413d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/com/google/gitiles/blame/cache/BlameCacheImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ private PooledCommit(ObjectId commit, PersonIdent author) {
163163
}
164164
}
165165

166-
private static List<Region> loadRegions(BlameGenerator gen) throws IOException {
166+
public static List<Region> loadRegions(BlameGenerator gen) throws IOException {
167167
Map<ObjectId, PooledCommit> commits = Maps.newHashMap();
168168
Interner<String> strings = Interners.newStrongInterner();
169169
int lineCount = gen.getResultContents().size();

0 commit comments

Comments
 (0)