@Test public void testGetJiraSet() throws SourceControlException { List<Integer> list = Arrays.asList(1, 2, 8, 9, 10, 100, 9999999); String filepath = "sandboni-engine/src/main/java/com/sandboni/core/Application.java"; Set<RevInfo> jiraSet = gitRepository.getJiraSet(filepath, list); Set<RevInfo> jiraSet2 = gitRepository.getJiraSet(filepath, list); assertEquals(jiraSet, jiraSet2); }
@Override public Set<RevInfo> getJiraSet(String packagePath, List<Integer> lineNumbers) { return blameCache.computeIfAbsent(packagePath, k -> { try { return super.getJiraSet(packagePath, lineNumbers); } catch (SourceControlException e) { throw new SourceControlRuntimeException(e); } }); }
CachedRepository extends GitRepository { @Override public Set<RevInfo> getJiraSet(String packagePath, List<Integer> lineNumbers) { return blameCache.computeIfAbsent(packagePath, k -> { try { return super.getJiraSet(packagePath, lineNumbers); } catch (SourceControlException e) { throw new SourceControlRuntimeException(e); } }); } }
CachedRepository extends GitRepository { @Override public Set<RevInfo> getJiraSet(String packagePath, List<Integer> lineNumbers) { return blameCache.computeIfAbsent(packagePath, k -> { try { return super.getJiraSet(packagePath, lineNumbers); } catch (SourceControlException e) { throw new SourceControlRuntimeException(e); } }); } CachedRepository(String repositoryPath, SourceControlFilter... filters); }
CachedRepository extends GitRepository { @Override public Set<RevInfo> getJiraSet(String packagePath, List<Integer> lineNumbers) { return blameCache.computeIfAbsent(packagePath, k -> { try { return super.getJiraSet(packagePath, lineNumbers); } catch (SourceControlException e) { throw new SourceControlRuntimeException(e); } }); } CachedRepository(String repositoryPath, SourceControlFilter... filters); @Override ChangeScope<Change> getChanges(String fromRev, String toRev); @Override Set<RevInfo> getJiraSet(String packagePath, List<Integer> lineNumbers); static void clearCache(); }
CachedRepository extends GitRepository { @Override public Set<RevInfo> getJiraSet(String packagePath, List<Integer> lineNumbers) { return blameCache.computeIfAbsent(packagePath, k -> { try { return super.getJiraSet(packagePath, lineNumbers); } catch (SourceControlException e) { throw new SourceControlRuntimeException(e); } }); } CachedRepository(String repositoryPath, SourceControlFilter... filters); @Override ChangeScope<Change> getChanges(String fromRev, String toRev); @Override Set<RevInfo> getJiraSet(String packagePath, List<Integer> lineNumbers); static void clearCache();  }