1a64babff4c22cb4e412fd86b6fdb802e9c9983d
Files Diff
- Added: 2
- Removed: 2
- Renamed: 0
- Modified: 3
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 2 | ||
Rename Method private selectMetricIds(session DbSession) : Map<Long,String> renamed to private selectMetricKeysByIds(session DbSession) : Map<Long,String> in class org.sonar.db.measure.ProjectMeasuresIndexerIterator | From | To | |
Rename Method public does_not_return_disabled_and_hidden_metrics() : void renamed to public does_not_return_disabled_metrics() : void in class org.sonar.db.measure.ProjectMeasuresIndexerIteratorTest | From | To | |
Change Parameter Type | 3 | ||
Change Parameter Type docs : Iterator<ProjectMeasuresDoc> to docs : Iterator<ProjectMeasures> in method private doIndex(bulk BulkIndexer, docs Iterator<ProjectMeasures>) : long in class org.sonar.server.component.es.ProjectMeasuresIndexer | From | To | |
Change Parameter Type measures : Map<String,Object> to measures : Map<String,Double> in method public setMeasuresFromMap(measures Map<String,Double>) : ProjectMeasuresDoc in class org.sonar.server.component.es.ProjectMeasuresDoc | From | To | |
Change Parameter Type analysisUuid : Optional<String> to analysisUuid : String in method private selectMeasures(projectUuid String, analysisUuid String) : Measures in class org.sonar.db.measure.ProjectMeasuresIndexerIterator | From | To | |
Change Return Type | 4 | ||
Change Return Type Map<String,ProjectMeasuresDoc> to Map<String,ProjectMeasures> in method private createResultSetAndReturnDocsById(date long, projectUuid String) : Map<String,ProjectMeasures> in class org.sonar.db.measure.ProjectMeasuresIndexerIteratorTest | From | To | |
Change Return Type Map<String,ProjectMeasuresDoc> to Map<String,ProjectMeasures> in method private createResultSetAndReturnDocsById() : Map<String,ProjectMeasures> in class org.sonar.db.measure.ProjectMeasuresIndexerIteratorTest | From | To | |
Change Return Type Map<String,Object> to Map<String,Double> in method public getNumericMeasures() : Map<String,Double> in class org.sonar.db.measure.ProjectMeasuresIndexerIterator.Measures | From | To | |
Change Return Type ProjectMeasuresResultSetIterator to ProjectMeasuresIndexerIterator in method public create(session DbSession, afterDate long, projectUuid String) : ProjectMeasuresIndexerIterator in class org.sonar.db.measure.ProjectMeasuresIndexerIterator | From | To | |
Move And Rename Class | 2 | ||
Move And Rename Class org.sonar.server.component.es.ProjectMeasuresResultSetIterator moved and renamed to org.sonar.db.measure.ProjectMeasuresIndexerIterator | From | To | |
Move And Rename Class org.sonar.server.component.es.ProjectMeasuresResultSetIteratorTest moved and renamed to org.sonar.db.measure.ProjectMeasuresIndexerIteratorTest | From | To | |
Rename Attribute | 2 | ||
Rename Attribute dbSession : DbSession to measuresStatement : PreparedStatement in class org.sonar.db.measure.ProjectMeasuresIndexerIterator | From | To | |
Rename Attribute metrics : Map<Long,String> to metricKeysByIds : Map<Long,String> in class org.sonar.db.measure.ProjectMeasuresIndexerIterator | From | To | |
Change Variable Type | 13 | ||
Change Variable Type docsById : Map<String,ProjectMeasuresDoc> to docsById : Map<String,ProjectMeasures> in method public does_not_return_none_numeric_metrics() : void in class org.sonar.db.measure.ProjectMeasuresIndexerIteratorTest | From | To | |
Change Variable Type doc : ProjectMeasuresDoc to doc : ProjectMeasures in method public return_only_docs_from_given_project() : void in class org.sonar.db.measure.ProjectMeasuresIndexerIteratorTest | From | To | |
Change Variable Type doc : ProjectMeasuresDoc to doc : ProjectMeasures in method private doIndex(bulk BulkIndexer, docs Iterator<ProjectMeasures>) : long in class org.sonar.server.component.es.ProjectMeasuresIndexer | From | To | |
Change Variable Type docsById : Map<String,ProjectMeasuresDoc> to docsById : Map<String,ProjectMeasures> in method public return_only_docs_after_date() : void in class org.sonar.db.measure.ProjectMeasuresIndexerIteratorTest | From | To | |
Change Variable Type docsById : Map<String,ProjectMeasuresDoc> to docsById : Map<String,ProjectMeasures> in method public return_project_without_analysis() : void in class org.sonar.db.measure.ProjectMeasuresIndexerIteratorTest | From | To | |
Change Variable Type docsById : Map<String,ProjectMeasuresDoc> to docsById : Map<String,ProjectMeasures> in method public return_project_measure() : void in class org.sonar.db.measure.ProjectMeasuresIndexerIteratorTest | From | To | |
Change Variable Type docsById : Map<String,ProjectMeasuresDoc> to docsById : Map<String,ProjectMeasures> in method public return_only_docs_from_given_project() : void in class org.sonar.db.measure.ProjectMeasuresIndexerIteratorTest | From | To | |
Change Variable Type docsById : Map<String,ProjectMeasuresDoc> to docsById : Map<String,ProjectMeasures> in method public return_project_measure_having_leak() : void in class org.sonar.db.measure.ProjectMeasuresIndexerIteratorTest | From | To | |
Change Variable Type docsById : Map<String,ProjectMeasuresDoc> to docsById : Map<String,ProjectMeasures> in method public does_not_return_disabled_metrics() : void in class org.sonar.db.measure.ProjectMeasuresIndexerIteratorTest | From | To | |
Change Variable Type docsById : Map<String,ProjectMeasuresDoc> to docsById : Map<String,ProjectMeasures> in method public return_nothing_on_unknown_project() : void in class org.sonar.db.measure.ProjectMeasuresIndexerIteratorTest | From | To | |
Change Variable Type docsById : Map<String,ProjectMeasuresDoc> to docsById : Map<String,ProjectMeasures> in method public return_quality_gate_status_measure() : void in class org.sonar.db.measure.ProjectMeasuresIndexerIteratorTest | From | To | |
Change Variable Type doc : ProjectMeasuresDoc to doc : ProjectMeasures in method public return_project_without_analysis() : void in class org.sonar.db.measure.ProjectMeasuresIndexerIteratorTest | From | To | |
Change Variable Type doc : ProjectMeasuresDoc to doc : ProjectMeasures in method public return_project_measure() : void in class org.sonar.db.measure.ProjectMeasuresIndexerIteratorTest | From | To | |
Extract Variable | 1 | ||
Extract Variable projectUuid : String in method private newIndexRequest(doc ProjectMeasuresDoc) : IndexRequest from class org.sonar.server.component.es.ProjectMeasuresIndexer | From | To | |
Inline Variable | 3 | ||
Inline Variable doc : ProjectMeasuresDoc in method public does_not_return_disabled_and_hidden_metrics() : void from class org.sonar.server.component.es.ProjectMeasuresResultSetIteratorTest | From | To | |
Inline Variable doc : ProjectMeasuresDoc in method public does_not_return_none_numeric_metrics() : void from class org.sonar.server.component.es.ProjectMeasuresResultSetIteratorTest | From | To | |
Inline Variable doc : ProjectMeasuresDoc in method public return_project_measure_having_leak() : void from class org.sonar.server.component.es.ProjectMeasuresResultSetIteratorTest | From | To | |
Change Attribute Type | 2 | ||
Change Attribute Type numericMeasures : Map<String,Object> to numericMeasures : Map<String,Double> in class org.sonar.db.measure.ProjectMeasuresIndexerIterator.Measures | From | To | |
Change Attribute Type dbSession : DbSession to measuresStatement : PreparedStatement in class org.sonar.db.measure.ProjectMeasuresIndexerIterator | From | To | |
Rename Parameter | 2 | ||
Rename Parameter metrics : Map<Long,String> to metricKeysByIds : Map<Long,String> in method private ProjectMeasuresIndexerIterator(measuresStatement PreparedStatement, metricKeysByIds Map<Long,String>, projects List<Project>) in class org.sonar.db.measure.ProjectMeasuresIndexerIterator | From | To | |
Rename Parameter stmt : PreparedStatement to measuresStatement : PreparedStatement in method private ProjectMeasuresIndexerIterator(measuresStatement PreparedStatement, metricKeysByIds Map<Long,String>, projects List<Project>) in class org.sonar.db.measure.ProjectMeasuresIndexerIterator | From | To |