dbddd10fdd42d1a8b09c393a1a6a218affb4c646
Files Diff
- Added: 1
- Removed: 0
- Renamed: 0
- Modified: 11
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 2 | ||
Rename Method public should_throw_if_component_already_exists() : void renamed to public create_component() : void in class org.sonar.server.component.DefaultRubyComponentServiceTest | From | To | |
Rename Method public should_thow_if_create_fails() : void renamed to public should_throw_exception_if_create_fails() : void in class org.sonar.server.component.DefaultRubyComponentServiceTest | From | To | |
Move Method | 2 | ||
Move Method private formatMessage(message String, qualifier String, key String) : String from class org.sonar.server.component.DefaultRubyComponentService to private formatMessage(message String, qualifier String, key String) : String from class org.sonar.server.component.ComponentService | From | To | |
Move Method private checkKeyFormat(qualifier String, kee String) : void from class org.sonar.server.component.DefaultRubyComponentService to private checkKeyFormat(qualifier String, kee String) : void from class org.sonar.server.component.ComponentService | From | To | |
Rename Variable | 1 | ||
Rename Variable kee : String to createdKey : String in method public createComponent(key String, branch String, name String, qualifier String) : Long in class org.sonar.server.component.DefaultRubyComponentService | From | To | |
Move Attribute | 2 | ||
Move Attribute private resourceIndexerDao : ResourceIndexerDao from class org.sonar.server.component.DefaultRubyComponentService to private resourceIndexerDao : ResourceIndexerDao from class org.sonar.server.component.ComponentService | From | To | |
Move Attribute package resourceIndexerDao : ResourceIndexerDao from class org.sonar.server.component.DefaultRubyComponentServiceTest to private resourceIndexerDao : ResourceIndexerDao from class org.sonar.server.component.ComponentService | From | To | |
Change Variable Type | 1 | ||
Change Variable Type session : SqlSession to session : DbSession in method public indexResource(id long) : boolean in class org.sonar.core.resource.ResourceIndexerDao | From | To | |
Extract Method | 4 | ||
Extract Method private getByKey(session DbSession, key String) : ComponentDto extracted from public getByKey(key String) : ComponentDto in class org.sonar.server.component.ComponentService | From | To | |
Extract Method public indexResource(session DbSession, id long) : boolean extracted from public indexResource(id long) : boolean in class org.sonar.core.resource.ResourceIndexerDao | From | To | |
Extract Method private getNullableByKey(session DbSession, key String) : ComponentDto extracted from public getNullableByKey(key String) : ComponentDto in class org.sonar.server.component.ComponentService | From | To | |
Extract Method public createComponent(key String, branch String, name String, qualifier String) : Long extracted from public createComponent(kee String, name String, qualifier String) : Long in class org.sonar.server.component.DefaultRubyComponentService | From | To | |
Rename Parameter | 1 | ||
Rename Parameter kee : String to key : String in method public createComponent(key String, name String, qualifier String) : Long in class org.sonar.server.component.DefaultRubyComponentService | From | To |