40c58462ac2260d53bc517f18236a1cdbcc4572b
Files Diff
- Added: 1
- Removed: 0
- Renamed: 0
- Modified: 37
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 1 | ||
Rename Method package activate(newActiveRule NewActiveRule) : void renamed to public addRule(newActiveRule NewActiveRule) : ActiveRulesBuilder in class org.sonar.api.batch.rule.internal.ActiveRulesBuilder | From | To | |
Move And Rename Method | 1 | ||
Move And Rename Method public create(ruleKey RuleKey) : NewActiveRule from class org.sonar.api.batch.rule.internal.ActiveRulesBuilder to public build() : NewActiveRule from class org.sonar.api.batch.rule.internal.NewActiveRule.Builder | From | To | |
Move And Inline Method | 1 | ||
Move And Inline Method public getCreatedAt() : long moved from class org.sonar.api.batch.rule.internal.NewActiveRule to class org.sonar.ce.task.projectanalysis.issue.IssueCreationDateCalculatorTest & inlined to private setRuleCreatedAt(createdAt long) : void | From | To | |
Move Method | 2 | ||
Move Method public setParam(key String, value String) : NewActiveRule from class org.sonar.api.batch.rule.internal.NewActiveRule to public setParam(key String, value String) : Builder from class org.sonar.api.batch.rule.internal.NewActiveRule.Builder | From | To | |
Move Method public setCreatedAt(createdAt long) : void from class org.sonar.api.batch.rule.internal.NewActiveRule to public setCreatedAt(createdAt long) : Builder from class org.sonar.api.batch.rule.internal.NewActiveRule.Builder | From | To | |
Change Return Type | 3 | ||
Change Return Type void to ActiveRulesBuilder in method public addRule(newActiveRule NewActiveRule) : ActiveRulesBuilder in class org.sonar.api.batch.rule.internal.ActiveRulesBuilder | From | To | |
Change Return Type void to Builder in method public setCreatedAt(createdAt long) : Builder in class org.sonar.api.batch.rule.internal.NewActiveRule.Builder | From | To | |
Change Return Type NewActiveRule to Builder in method public setParam(key String, value String) : Builder in class org.sonar.api.batch.rule.internal.NewActiveRule.Builder | From | To | |
Extract Class | 1 | ||
Extract Class org.sonar.api.batch.rule.internal.NewActiveRule.Builder from class org.sonar.api.batch.rule.internal.NewActiveRule | From | To | |
Change Variable Type | 2 | ||
Change Variable Type ar2 : Optional<ActiveRule> to ar2 : ActiveRule in method public feed_active_rules() : void in class org.sonar.ce.task.projectanalysis.step.LoadQualityProfilesStepTest | From | To | |
Change Variable Type ar1 : Optional<ActiveRule> to ar1 : ActiveRule in method public feed_active_rules() : void in class org.sonar.ce.task.projectanalysis.step.LoadQualityProfilesStepTest | From | To | |
Extract Variable | 1 | ||
Extract Variable ar2 : ActiveRule in method public feed_active_rules() : void from class org.sonar.ce.task.projectanalysis.step.LoadQualityProfilesStepTest | From | To | |
Extract Method | 1 | ||
Extract Method private activeRuleIsNewOrChanged(activeRule ActiveRule, lastAnalysisDate Long) : boolean extracted from public onIssue(component Component, issue DefaultIssue) : void in class org.sonar.ce.task.projectanalysis.issue.IssueCreationDateCalculator | From | To |