ee5860395a505e9acee4a3908e1c7df3c9541536
Files Diff
- Added: 10
- Removed: 2
- Renamed: 0
- Modified: 35
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 3 | ||
Rename Method protected doGetNullableByKey(session DbSession, key MeasureKey) : MeasureDto renamed to public apply(keys List<String>) : List<MeasureDto> in class org.sonar.server.measure.persistence.MeasureDao.findByComponentKeyAndMetricKeys.executeLargeInputs | From | To | |
Rename Method public createDao() : void renamed to public setUp() : void in class org.sonar.server.measure.persistence.MeasureDaoTest | From | To | |
Rename Method public setTextValue(textValue String) : MeasureDto renamed to public setAlertStatus(alertStatus String) : MeasureDto in class org.sonar.core.measure.db.MeasureDto | From | To | |
Move And Rename Method | 2 | ||
Move And Rename Method public metricKey() : String from class org.sonar.core.measure.db.MeasureKey to public getMetricKey() : String from class org.sonar.core.measure.db.MeasureDto | From | To | |
Move And Rename Method public componentKey() : String from class org.sonar.core.measure.db.MeasureKey to public getComponentKey() : String from class org.sonar.core.measure.db.MeasureDto | From | To | |
Rename Variable | 1 | ||
Rename Variable data : MeasureDto to measure : MeasureDto in method private findDataFromComponent(fileKey String, metricKey String, session DbSession) : String in class org.sonar.server.duplication.ws.ShowAction | From | To | |
Change Return Type | 4 | ||
Change Return Type List<java.lang.String> to ProtocolStringList in method public getTagList() : ProtocolStringList in class org.sonar.batch.protocol.output.BatchReport.Issue | From | To | |
Change Return Type MeasureDto to List<MeasureDto> in method public apply(keys List<String>) : List<MeasureDto> in class org.sonar.server.measure.persistence.MeasureDao.findByComponentKeyAndMetricKeys.executeLargeInputs | From | To | |
Change Return Type List<java.lang.String> to ProtocolStringList in method public getTagList() : ProtocolStringList in class org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder | From | To | |
Change Return Type List<java.lang.String> to ProtocolStringList in method public getTagList() : ProtocolStringList in class org.sonar.batch.protocol.output.BatchReport.Issue.Builder | From | To | |
Replace Variable With Attribute | 6 | ||
Replace Variable With Attribute reader : BatchReportReader to sut : BatchReportReader in method public create_dir_if_does_not_exist() : void in class org.sonar.batch.protocol.output.BatchReportReaderTest | From | To | |
Replace Variable With Attribute key : MeasureKey to componentKey : String in method public apply(keys List<String>) : List<MeasureDto> in class org.sonar.server.measure.persistence.MeasureDao.findByComponentKeyAndMetricKeys.executeLargeInputs | From | To | |
Replace Variable With Attribute measureDto : MeasureDto to sut : MeasureDto in method public test_getter_and_setter() : void in class org.sonar.core.measure.db.MeasureDtoTest | From | To | |
Replace Variable With Attribute reader : BatchReportReader to sut : BatchReportReader in method public fail_if_missing_file_on_deleted_component() : void in class org.sonar.batch.protocol.output.BatchReportReaderTest | From | To | |
Replace Variable With Attribute reader : BatchReportReader to sut : BatchReportReader in method public fail_if_missing_metadata_file() : void in class org.sonar.batch.protocol.output.BatchReportReaderTest | From | To | |
Replace Variable With Attribute reader : BatchReportReader to sut : BatchReportReader in method public fail_if_missing_file_on_component() : void in class org.sonar.batch.protocol.output.BatchReportReaderTest | From | To | |
Rename Attribute | 2 | ||
Rename Attribute dao : MeasureDao to sut : MeasureDao in class org.sonar.server.measure.persistence.MeasureDaoTest | From | To | |
Rename Attribute data : byte[] to dataValue : byte[] in class org.sonar.core.measure.db.MeasureDto | From | To | |
Extract Variable | 40 | ||
Extract Variable bs : ByteString in method private Issue(input CodedInputStream, extensionRegistry ExtensionRegistryLite) from class org.sonar.batch.protocol.output.BatchReport.Issue | From | To | |
Extract Variable bs : ByteString in method private ServerIssue(input CodedInputStream, extensionRegistry ExtensionRegistryLite) from class org.sonar.batch.protocol.input.BatchInput.ServerIssue | From | To | |
Extract Variable bs : ByteString in method private Metadata(input CodedInputStream, extensionRegistry ExtensionRegistryLite) from class org.sonar.batch.protocol.output.BatchReport.Metadata | From | To | |
Extract Variable bs : ByteString in method private Issues(input CodedInputStream, extensionRegistry ExtensionRegistryLite) from class org.sonar.batch.protocol.output.BatchReport.Issues | From | To | |
Extract Variable bs : ByteString in method private ComponentLink(input CodedInputStream, extensionRegistry ExtensionRegistryLite) from class org.sonar.batch.protocol.output.BatchReport.ComponentLink | From | To | |
Extract Variable bs : ByteString in method private Line(input CodedInputStream, extensionRegistry ExtensionRegistryLite) from class org.sonar.server.source.db.FileSourceDb.Line | From | To | |
Extract Variable bs : ByteString in method private Event(input CodedInputStream, extensionRegistry ExtensionRegistryLite) from class org.sonar.batch.protocol.output.BatchReport.Event | From | To | |
Extract Variable bs : ByteString in method private Component(input CodedInputStream, extensionRegistry ExtensionRegistryLite) from class org.sonar.batch.protocol.output.BatchReport.Component | From | To | |
Extract Method | 3 | ||
Extract Method private isNotAnExistingFile(file File) : boolean extracted from public readMetadata() : BatchReport.Metadata in class org.sonar.batch.protocol.output.BatchReportReader | From | To | |
Extract Method private isNotAnExistingFile(file File) : boolean extracted from public readDeletedComponentIssues(deletedComponentRef int) : Issues in class org.sonar.batch.protocol.output.BatchReportReader | From | To | |
Extract Method private isNotAnExistingFile(file File) : boolean extracted from public readComponent(componentRef int) : BatchReport.Component in class org.sonar.batch.protocol.output.BatchReportReader | From | To | |
Rename Parameter | 1 | ||
Rename Parameter textValue : String to alertStatus : String in method public setAlertStatus(alertStatus String) : MeasureDto in class org.sonar.core.measure.db.MeasureDto | From | To |