File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
cost-benefit-calculator/src/main/java/org/hjug/cbc Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ public class CostBenefitCalculator {
2929 private String repositoryPath ;
3030 private final GitLogReader gitLogReader = new GitLogReader ();
3131 private Repository repository = null ;
32+ private final ChangePronenessRanker changePronenessRanker ;
3233
3334 public CostBenefitCalculator (String repositoryPath ) {
3435 this .repositoryPath = repositoryPath ;
@@ -43,6 +44,8 @@ public CostBenefitCalculator(String repositoryPath) {
4344 } catch (IOException e ) {
4445 log .error ("Failure to access Git repository" , e );
4546 }
47+
48+ changePronenessRanker = new ChangePronenessRanker (repository , gitLogReader );
4649 }
4750
4851 // copied from PMD's PmdTaskImpl.java and modified
@@ -135,7 +138,6 @@ <T extends Disharmony> List<ScmLogInfo> getRankedChangeProneness(List<T> disharm
135138 }
136139 }
137140
138- ChangePronenessRanker changePronenessRanker = new ChangePronenessRanker (repository , gitLogReader );
139141 changePronenessRanker .rankChangeProneness (scmLogInfos );
140142 return scmLogInfos ;
141143 }
You can’t perform that action at this time.
0 commit comments