dbfc8cfb5b9bba4683959e68743957b06db1e399
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 2
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 2 | ||
Rename Method private genericComponentFieldOrdering(isAscending boolean, function Function<ComponentDtoWithSnapshotId,String>) : Ordering<ComponentDtoWithSnapshotId> renamed to private stringOrdering(isAscending boolean, function Function<ComponentDtoWithSnapshotId,String>) : Ordering<ComponentDtoWithSnapshotId> in class org.sonar.server.measure.ws.ComponentTreeSort | From | To | |
Rename Method public sort_by_metric_key() : void renamed to public sort_by_numerical_metric_key() : void in class org.sonar.server.measure.ws.ComponentTreeSortTest | From | To | |
Rename Variable | 1 | ||
Rename Variable metric : MetricDto to violationsMetric : MetricDto in method public setUp() : void in class org.sonar.server.measure.ws.ComponentTreeSortTest | From | To | |
Change Return Type | 1 | ||
Change Return Type Double to String in method public apply(input ComponentDtoWithSnapshotId) : String in class org.sonar.server.measure.ws.ComponentTreeSort.ComponentDtoWithSnapshotIdToTextualMeasureValue | From | To | |
Rename Class | 1 | ||
Rename Class org.sonar.server.measure.ws.ComponentTreeSort.ComponentDtoWithSnapshotIdToMeasureValue renamed to org.sonar.server.measure.ws.ComponentTreeSort.ComponentDtoWithSnapshotIdToTextualMeasureValue | From | To | |
Merge Parameter | 1 | ||
Merge Parameter [wsRequest : ComponentTreeWsRequest, metrics : List<MetricDto>] to metric : MetricDto in method private numericalMetricOrdering(isAscending boolean, metric MetricDto, measuresByComponentUuidAndMetric Table<String,MetricDto,MeasureDto>) : Ordering<ComponentDtoWithSnapshotId> in class org.sonar.server.measure.ws.ComponentTreeSort | From | To | |
Rename Attribute | 2 | ||
Rename Attribute metricKey : String to metric : MetricDto in class org.sonar.server.measure.ws.ComponentTreeSort.ComponentDtoWithSnapshotIdToTextualMeasureValue | From | To | |
Rename Attribute METRIC_KEY : String to NUM_METRIC_KEY : String in class org.sonar.server.measure.ws.ComponentTreeSortTest | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type metricKey : String to metric : MetricDto in class org.sonar.server.measure.ws.ComponentTreeSort.ComponentDtoWithSnapshotIdToTextualMeasureValue | From | To | |
Extract Method | 1 | ||
Extract Method private numericalMetricOrdering(isAscending boolean, metric MetricDto, measuresByComponentUuidAndMetric Table<String,MetricDto,MeasureDto>) : Ordering<ComponentDtoWithSnapshotId> extracted from private metricOrdering(wsRequest ComponentTreeWsRequest, metrics List<MetricDto>, measuresByComponentUuidAndMetric Table<String,MetricDto,MeasureDto>) : Ordering<ComponentDtoWithSnapshotId> in class org.sonar.server.measure.ws.ComponentTreeSort | From | To |