3a9fc2f40564404749d501d354b79a91e3df3a49
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 12
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Rename Method | 1 | ||
| Rename Method private indexExistingDtosByKey(session DbSession) : Map<String,ComponentDto> renamed to private indexExistingDtosByUuids(session DbSession) : Map<String,ComponentDto> in class org.sonar.ce.task.projectanalysis.step.PersistComponentsStep | From | To | |
| Change Parameter Type | 2 | ||
| Change Parameter Type reportModulesPath : Supplier<Map<String,String>> to reportModulesPath : Map<String,String> in method public ComponentUuidFactory(dbClient DbClient, dbSession DbSession, rootKey String, reportModulesPath Map<String,String>) in class org.sonar.ce.task.projectanalysis.component.ComponentUuidFactory | From | To | |
| Change Parameter Type reportModulesPath : Supplier<Map<String,String>> to pathByModuleKey : Map<String,String> in method private loadModulePathsByUuid(dbClient DbClient, dbSession DbSession, rootKey String, pathByModuleKey Map<String,String>) : Map<String,String> in class org.sonar.ce.task.projectanalysis.component.ComponentUuidFactory | From | To | |
| Rename Variable | 2 | ||
| Rename Variable pathFromRootProject : String to modulePathFromRootProject : String in method private doMigration(dbClient DbClient, dbSession DbSession, rootKey String, modulePathsByUuid Map<String,String>) : void in class org.sonar.ce.task.projectanalysis.component.ComponentUuidFactory | From | To | |
| Rename Variable existingDtosByKeys : Map<String,ComponentDto> to existingDtosByUuids : Map<String,ComponentDto> in method public execute(context ComputationStep.Context) : void in class org.sonar.ce.task.projectanalysis.step.PersistComponentsStep | From | To | |
| Rename Attribute | 1 | ||
| Rename Attribute existingComponentDtosByKey : Map<String,ComponentDto> to existingComponentDtosByUuids : Map<String,ComponentDto> in class org.sonar.ce.task.projectanalysis.step.PersistComponentsStep.PersistComponentStepsVisitor | From | To | |
| Inline Variable | 1 | ||
| Inline Variable rootKey : String in method private isRootPrivate(root Component, existingDtosByKeys Map<String,ComponentDto>) : boolean from class org.sonar.ce.task.projectanalysis.step.PersistComponentsStep | From | To | |
| Extract Method | 2 | ||
| Extract Method private doMigration(dbClient DbClient, dbSession DbSession, rootKey String, modulePathsByUuid Map<String,String>) : void extracted from public ComponentUuidFactory(dbClient DbClient, dbSession DbSession, rootKey String, reportModulesPath Supplier<Map<String,String>>) in class org.sonar.ce.task.projectanalysis.component.ComponentUuidFactory | From | To | |
| Extract Method private noMigration(dbClient DbClient, dbSession DbSession, rootKey String) : void extracted from public ComponentUuidFactory(dbClient DbClient, dbSession DbSession, rootKey String, reportModulesPath Supplier<Map<String,String>>) in class org.sonar.ce.task.projectanalysis.component.ComponentUuidFactory | From | To | |
| Rename Parameter | 3 | ||
| Rename Parameter existingDtosByKeys : Map<String,ComponentDto> to existingDtosByUuids : Map<String,ComponentDto> in method private isRootPrivate(root Component, existingDtosByUuids Map<String,ComponentDto>) : boolean in class org.sonar.ce.task.projectanalysis.step.PersistComponentsStep | From | To | |
| Rename Parameter reportModulesPath : Supplier<Map<String,String>> to pathByModuleKey : Map<String,String> in method private loadModulePathsByUuid(dbClient DbClient, dbSession DbSession, rootKey String, pathByModuleKey Map<String,String>) : Map<String,String> in class org.sonar.ce.task.projectanalysis.component.ComponentUuidFactory | From | To | |
| Rename Parameter existingComponentDtosByKey : Map<String,ComponentDto> to existingComponentDtosByUuids : Map<String,ComponentDto> in method package PersistComponentStepsVisitor(existingComponentDtosByUuids Map<String,ComponentDto>, dbSession DbSession, mainBranchProjectUuid String) in class org.sonar.ce.task.projectanalysis.step.PersistComponentsStep.PersistComponentStepsVisitor | From | To |