844fb1f476fa55d9c1d6b0f49cb86f879d2abb85
Files Diff
- Added: 8
- Removed: 0
- Renamed: 0
- Modified: 11
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Rename Method | 1 | ||
| Rename Method public read_from_db() : void renamed to public getScmInfo_returns_ScmInfo_from_DB_if_hashes_are_the_same() : void in class org.sonar.server.computation.scm.ScmInfoRepositoryImplTest | From | To | |
| Move And Rename Method | 2 | ||
| Move And Rename Method private hash(line String) : String from class org.sonar.core.issue.tracking.LineHashSequence to private computeHash(line String) : String from class org.sonar.core.hash.SourceLinesHashesComputer | From | To | |
| Move And Rename Method private computeLineChecksum(line String) : String from class org.sonar.server.computation.source.ComputeFileSourceData to private computeHash(line String) : String from class org.sonar.core.hash.SourceLinesHashesComputer | From | To | |
| Change Parameter Type | 1 | ||
| Change Parameter Type sourceService : SourceService to sourceHashRepository : SourceHashRepository in method public ScmInfoRepositoryImpl(batchReportReader BatchReportReader, analysisMetadataHolder AnalysisMetadataHolder, dbClient DbClient, sourceHashRepository SourceHashRepository) in class org.sonar.server.computation.scm.ScmInfoRepositoryImpl | From | To | |
| Rename Variable | 2 | ||
| Rename Variable sourceService : SourceService to sourceHashRepository : SourceHashRepositoryImpl in method private persistFileSources(reportDir File) : void in class org.sonar.server.benchmark.PersistFileSourcesStepTest | From | To | |
| Rename Variable sourceService : SourceService to sourceHashRepository : SourceHashRepository in method public do_not_query_db_nor_report_if_component_type_is_not_FILE(component Component) : void in class org.sonar.server.computation.scm.ScmInfoRepositoryImplTest | From | To | |
| Extract Class | 1 | ||
| Extract Class org.sonar.core.hash.SourceLinesHashesComputer from class org.sonar.server.computation.source.ComputeFileSourceData.Data | From | To | |
| Extract Attribute | 2 | ||
| Extract Attribute private DATE_2 : long in class org.sonar.server.computation.scm.ScmInfoRepositoryImplTest | From | To | |
| Extract Attribute private DATE_1 : long in class org.sonar.server.computation.scm.ScmInfoRepositoryImplTest | From | To | |
| Rename Attribute | 1 | ||
| Rename Attribute sourceService : SourceService to sourceHashRepository : SourceHashRepository in class org.sonar.server.computation.scm.ScmInfoRepositoryImpl | From | To | |
| Change Variable Type | 3 | ||
| Change Variable Type lines : Iterable<String> to lines : List<String> in method protected loadLineHashSequence() : LineHashSequence in class org.sonar.server.computation.issue.TrackerRawInputFactory.RawLazyInput | From | To | |
| Change Variable Type sourceService : SourceService to sourceHashRepository : SourceHashRepositoryImpl in method private persistFileSources(reportDir File) : void in class org.sonar.server.benchmark.PersistFileSourcesStepTest | From | To | |
| Change Variable Type sourceService : SourceService to sourceHashRepository : SourceHashRepository in method public do_not_query_db_nor_report_if_component_type_is_not_FILE(component Component) : void in class org.sonar.server.computation.scm.ScmInfoRepositoryImplTest | From | To | |
| Extract Variable | 1 | ||
| Extract Variable sourceLinesRepository : SourceLinesRepositoryImpl in method private persistFileSources(reportDir File) : void from class org.sonar.server.benchmark.PersistFileSourcesStepTest | From | To | |
| Extract Method | 1 | ||
| Extract Method private addFileSourceInDb(author String, date Long, revision String, srcHash String) : void extracted from public return_nothing_when_nothing_in_report_and_db_has_no_scm() : void in class org.sonar.server.computation.scm.ScmInfoRepositoryImplTest | From | To | |
| Change Attribute Type | 1 | ||
| Change Attribute Type sourceService : SourceService to sourceHashRepository : SourceHashRepository in class org.sonar.server.computation.scm.ScmInfoRepositoryImpl | From | To | |
| Rename Parameter | 3 | ||
| Rename Parameter component : Component to file : Component in method private getScmInfoFromDb(file Component) : Optional<ScmInfo> in class org.sonar.server.computation.scm.ScmInfoRepositoryImpl | From | To | |
| Rename Parameter component : Component to file : Component in method private getScmInfoFromReport(file Component, changesets BatchReport.Changesets) : Optional<ScmInfo> in class org.sonar.server.computation.scm.ScmInfoRepositoryImpl | From | To | |
| Rename Parameter sourceService : SourceService to sourceHashRepository : SourceHashRepository in method public ScmInfoRepositoryImpl(batchReportReader BatchReportReader, analysisMetadataHolder AnalysisMetadataHolder, dbClient DbClient, sourceHashRepository SourceHashRepository) in class org.sonar.server.computation.scm.ScmInfoRepositoryImpl | From | To |