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 <[email protected]>
diff --git a/java/com/google/gitiles/blame/cache/BlameCacheImpl.java b/java/com/google/gitiles/blame/cache/BlameCacheImpl.java index 2fa80f5..2d831a4 100644 --- a/java/com/google/gitiles/blame/cache/BlameCacheImpl.java +++ b/java/com/google/gitiles/blame/cache/BlameCacheImpl.java
@@ -163,7 +163,7 @@ } } - private static List<Region> loadRegions(BlameGenerator gen) throws IOException { + public static List<Region> loadRegions(BlameGenerator gen) throws IOException { Map<ObjectId, PooledCommit> commits = Maps.newHashMap(); Interner<String> strings = Interners.newStrongInterner(); int lineCount = gen.getResultContents().size();