6b8860f23102834df92be32f04d9f29a0fa3cd47
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 5
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 1 | ||
Rename Method public fail_when_metric_type_is_changed() : void renamed to public fail_when_metric_type_is_changed_and_associated_measures_exist() : void in class org.sonar.server.metric.ws.CreateActionTest | From | To | |
Extract Variable | 1 | ||
Extract Variable metric : MetricDto in method public fail_when_metric_type_is_changed_and_associated_measures_exist() : void from class org.sonar.server.metric.ws.CreateActionTest | From | To | |
Extract Method | 6 | ||
Extract Method private metricIsNotInDb(metricInDb MetricDto) : boolean extracted from public handle(request Request, response Response) : void in class org.sonar.server.metric.ws.CreateAction | From | To | |
Extract Method private metricIsNotInDb(metricInDb MetricDto) : boolean extracted from private checkMetricInDbAndTemplate(metricInDb MetricDto, template MetricDto) : void in class org.sonar.server.metric.ws.CreateAction | From | To | |
Extract Method private isMetricNonCustom(metricInDb MetricDto) : boolean extracted from private checkMetricInDbAndTemplate(metricInDb MetricDto, template MetricDto) : void in class org.sonar.server.metric.ws.CreateAction | From | To | |
Extract Method private areOneOfTheMandatoryArgumentsEmpty(template MetricDto) : boolean extracted from private checkMetricInDbAndTemplate(metricInDb MetricDto, template MetricDto) : void in class org.sonar.server.metric.ws.CreateAction | From | To | |
Extract Method private isMetricEnabled(metricInDb MetricDto) : boolean extracted from private checkMetricInDbAndTemplate(metricInDb MetricDto, template MetricDto) : void in class org.sonar.server.metric.ws.CreateAction | From | To | |
Extract Method private hasMetricTypeChanged(metricInDb MetricDto, template MetricDto) : boolean extracted from private checkMetricInDbAndTemplate(metricInDb MetricDto, template MetricDto) : void in class org.sonar.server.metric.ws.CreateAction | From | To |