ad83f03eefb1fcce357bfefc666db8e86174fcb1
Files Diff
- Added: 6
- Removed: 0
- Renamed: 0
- Modified: 9
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 4 | ||
Rename Method public getScmInfoFromDb(file Component) : ScmInfo renamed to public getScmInfo(file Component) : Optional<DbScmInfo> in class org.sonar.server.computation.task.projectanalysis.scm.ScmInfoDbLoader | From | To | |
Rename Method public returns_ScmInfo_from_DB_if_hashes_are_the_same() : void renamed to public returns_ScmInfo_from_DB() : void in class org.sonar.server.computation.task.projectanalysis.scm.ScmInfoDbLoaderTest | From | To | |
Rename Method public returns_absent_when__hashes_are_not_the_same() : void renamed to public return_empty_if_no_dto_available() : void in class org.sonar.server.computation.task.projectanalysis.scm.ScmInfoDbLoaderTest | From | To | |
Rename Method public not_read_in_db_on_first_analysis_and_no_merge_branch() : void renamed to public do_not_read_from_db_on_first_analysis_and_no_merge_branch() : void in class org.sonar.server.computation.task.projectanalysis.scm.ScmInfoDbLoaderTest | From | To | |
Change Return Type | 5 | ||
Change Return Type ScmInfo to Optional<ScmInfo> in method private getScmInfoForComponent(component Component) : Optional<ScmInfo> in class org.sonar.server.computation.task.projectanalysis.scm.ScmInfoRepositoryImpl | From | To | |
Change Return Type ScmInfo to Optional<ScmInfo> in method private getScmInfoFromReport(file Component, changesets ScannerReport.Changesets) : Optional<ScmInfo> in class org.sonar.server.computation.task.projectanalysis.scm.ScmInfoRepositoryImpl | From | To | |
Change Return Type Optional<ScmInfo> to com.google.common.base.Optional<ScmInfo> in method public getScmInfo(component Component) : com.google.common.base.Optional<ScmInfo> in class org.sonar.server.computation.task.projectanalysis.scm.ScmInfoRepositoryImpl | From | To | |
Change Return Type ScmInfo to Optional<DbScmInfo> in method public getScmInfo(file Component) : Optional<DbScmInfo> in class org.sonar.server.computation.task.projectanalysis.scm.ScmInfoDbLoader | From | To | |
Change Return Type Optional<ScmInfo> to Optional<DbScmInfo> in method public create(lines Iterable<DbFileSources.Line>, fileHash String) : Optional<DbScmInfo> in class org.sonar.server.computation.task.projectanalysis.scm.DbScmInfo | From | To | |
Move Attribute | 2 | ||
Move Attribute private sourceHashRepository : SourceHashRepository from class org.sonar.server.computation.task.projectanalysis.scm.ScmInfoDbLoader to private sourceHashRepository : SourceHashRepository from class org.sonar.server.computation.task.projectanalysis.scm.ScmInfoRepositoryImpl | From | To | |
Move Attribute private sourceHashRepository : SourceHashRepository from class org.sonar.server.computation.task.projectanalysis.scm.ScmInfoDbLoader to private sourceHashRepository : SourceHashRepository from class org.sonar.server.computation.task.projectanalysis.scm.ScmInfoRepositoryImplTest | From | To | |
Rename Attribute | 1 | ||
Rename Attribute batchReportReader : BatchReportReader to scannerReportReader : BatchReportReader in class org.sonar.server.computation.task.projectanalysis.scm.ScmInfoRepositoryImpl | From | To | |
Extract Variable | 2 | ||
Extract Variable hash : String in method public returns_ScmInfo_from_DB() : void from class org.sonar.server.computation.task.projectanalysis.scm.ScmInfoDbLoaderTest | From | To | |
Extract Variable hash : String in method public read_from_merge_branch_if_no_base() : void from class org.sonar.server.computation.task.projectanalysis.scm.ScmInfoDbLoaderTest | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type scmInfoCache : Map<Component,ScmInfo> to scmInfoCache : Map<Component,Optional<ScmInfo>> in class org.sonar.server.computation.task.projectanalysis.scm.ScmInfoRepositoryImpl | From | To | |
Rename Parameter | 1 | ||
Rename Parameter batchReportReader : BatchReportReader to scannerReportReader : BatchReportReader in method public ScmInfoRepositoryImpl(scannerReportReader BatchReportReader, analysisMetadata AnalysisMetadataHolder, scmInfoDbLoader ScmInfoDbLoader, sourceLinesDiff SourceLinesDiff, sourceHashRepository SourceHashRepository) in class org.sonar.server.computation.task.projectanalysis.scm.ScmInfoRepositoryImpl | From | To |