d1e303f8412f61f426a6c746cc2ac10b584940bd
Files Diff
- Added: 17
- Removed: 7
- Renamed: 0
- Modified: 11
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Change Parameter Type | 4 | ||
Change Parameter Type publisher : ReportPublisher to index : SonarDuplicationsIndex in method public JavaCpdIndexer(fs FileSystem, settings Settings, index SonarDuplicationsIndex) in class org.sonar.batch.cpd.JavaCpdIndexer | From | To | |
Change Parameter Type sonarEngine : JavaCpdEngine to sonarEngine : JavaCpdIndexer in method public CpdSensor(sonarEngine JavaCpdIndexer, sonarBridgeEngine DefaultCpdIndexer, settings Settings, fs FileSystem) in class org.sonar.batch.cpd.CpdSensor | From | To | |
Change Parameter Type publisher : ReportPublisher to index : SonarDuplicationsIndex in method public DefaultCpdIndexer(mappings CpdMappings, fs FileSystem, settings Settings, index SonarDuplicationsIndex) in class org.sonar.batch.cpd.DefaultCpdIndexer | From | To | |
Change Parameter Type sonarBridgeEngine : DefaultCpdEngine to sonarBridgeEngine : DefaultCpdIndexer in method public CpdSensor(sonarEngine JavaCpdIndexer, sonarBridgeEngine DefaultCpdIndexer, settings Settings, fs FileSystem) in class org.sonar.batch.cpd.CpdSensor | From | To | |
Move Method | 3 | ||
Move Method public minimumTokensByLanguage() : void from class org.sonar.batch.cpd.DefaultCpdEngineTest to public minimumTokensByLanguage() : void from class org.sonar.batch.cpd.CpdExecutorTest | From | To | |
Move Method public defaultMinimumTokens() : void from class org.sonar.batch.cpd.DefaultCpdEngineTest to public defaultMinimumTokens() : void from class org.sonar.batch.cpd.CpdExecutorTest | From | To | |
Move Method package getMinimumTokens(languageKey String) : int from class org.sonar.batch.cpd.DefaultCpdEngine to package getMinimumTokens(languageKey String) : int from class org.sonar.batch.cpd.CpdExecutor | From | To | |
Move Attribute | 4 | ||
Move Attribute private publisher : ReportPublisher from class org.sonar.batch.cpd.DefaultCpdEngine to private publisher : ReportPublisher from class org.sonar.batch.cpd.CpdExecutor | From | To | |
Move Attribute private batchComponentCache : BatchComponentCache from class org.sonar.batch.cpd.JavaCpdEngine to private batchComponentCache : BatchComponentCache from class org.sonar.batch.cpd.CpdExecutor | From | To | |
Move Attribute private batchComponentCache : BatchComponentCache from class org.sonar.batch.cpd.DefaultCpdEngine to private batchComponentCache : BatchComponentCache from class org.sonar.batch.cpd.CpdExecutor | From | To | |
Move Attribute private publisher : ReportPublisher from class org.sonar.batch.cpd.JavaCpdEngine to private publisher : ReportPublisher from class org.sonar.batch.cpd.CpdExecutor | From | To | |
Extract Class | 3 | ||
Extract Class org.sonar.batch.cpd.CpdExecutorTest from class org.sonar.batch.cpd.DefaultCpdEngineTest | From | To | |
Extract Class org.sonar.batch.cpd.CpdExecutor from class org.sonar.batch.cpd.DefaultCpdEngine | From | To | |
Extract Class org.sonar.batch.cpd.CpdExecutor from class org.sonar.batch.cpd.JavaCpdEngine | From | To | |
Rename Class | 4 | ||
Rename Class org.sonar.batch.cpd.JavaCpdEngine renamed to org.sonar.batch.cpd.JavaCpdIndexer | From | To | |
Rename Class org.sonar.batch.cpd.CpdEngine renamed to org.sonar.batch.cpd.CpdIndexer | From | To | |
Rename Class org.sonar.batch.cpd.DefaultCpdEngine renamed to org.sonar.batch.cpd.DefaultCpdIndexer | From | To | |
Rename Class org.sonar.batch.cpd.DefaultCpdEngineTest renamed to org.sonar.batch.cpd.DefaultCpdIndexerTest | From | To | |
Extract Variable | 1 | ||
Extract Variable blockHash : ByteArray in method private createBlock(index int, resourceId String, byteHash ByteArray) : Block from class org.sonar.duplications.index.PackedMemoryCloneIndex | From | To | |
Change Variable Type | 1 | ||
Change Variable Type engine : CpdEngine to engine : CpdIndexer in method public execute(context SensorContext) : void in class org.sonar.batch.cpd.CpdSensor | From | To | |
Extract Method | 1 | ||
Extract Method private createBlock(index int, resourceId String, byteHash ByteArray) : Block extracted from public getBySequenceHash(sequenceHash ByteArray) : Collection<Block> in class org.sonar.duplications.index.PackedMemoryCloneIndex | From | To | |
Rename Method | 3 | ||
Rename Method public analyse(languageKey String, context SensorContext) : void renamed to public index(languageKey String) : void in class org.sonar.batch.cpd.DefaultCpdIndexer | From | To | |
Rename Method public analyse(languageKey String, context SensorContext) : void renamed to public index(languageKey String) : void in class org.sonar.batch.cpd.JavaCpdIndexer | From | To | |
Rename Method package abstract analyse(language String, context SensorContext) : void renamed to package abstract index(language String) : void in class org.sonar.batch.cpd.CpdIndexer | From | To | |
Change Return Type | 3 | ||
Change Return Type CpdEngine to CpdIndexer in method package getEngine(language String) : CpdIndexer in class org.sonar.batch.cpd.CpdSensor | From | To | |
Change Return Type List to List<Class<? extends Object>> in method public all() : List<Class<? extends Object>> in class org.sonar.batch.cpd.CpdComponents | From | To | |
Change Return Type SonarDuplicationsIndex to void in method private createIndex(sourceFiles Iterable<InputFile>) : void in class org.sonar.batch.cpd.JavaCpdIndexer | From | To | |
Rename Attribute | 2 | ||
Rename Attribute publisher : ReportPublisher to index : SonarDuplicationsIndex in class org.sonar.batch.cpd.DefaultCpdIndexer | From | To | |
Rename Attribute publisher : ReportPublisher to index : SonarDuplicationsIndex in class org.sonar.batch.cpd.JavaCpdIndexer | From | To | |
Change Attribute Type | 7 | ||
Change Attribute Type engine : DefaultCpdEngine to engine : DefaultCpdIndexer in class org.sonar.batch.cpd.DefaultCpdIndexerTest | From | To | |
Change Attribute Type sonarEngine : JavaCpdEngine to sonarEngine : JavaCpdIndexer in class org.sonar.batch.cpd.CpdSensorTest | From | To | |
Change Attribute Type sonarEngine : CpdEngine to sonarEngine : CpdIndexer in class org.sonar.batch.cpd.CpdSensor | From | To | |
Change Attribute Type sonarBridgeEngine : DefaultCpdEngine to sonarBridgeEngine : DefaultCpdIndexer in class org.sonar.batch.cpd.CpdSensorTest | From | To | |
Change Attribute Type sonarBridgeEngine : CpdEngine to sonarBridgeEngine : CpdIndexer in class org.sonar.batch.cpd.CpdSensor | From | To | |
Change Attribute Type publisher : ReportPublisher to index : SonarDuplicationsIndex in class org.sonar.batch.cpd.DefaultCpdIndexer | From | To | |
Change Attribute Type publisher : ReportPublisher to index : SonarDuplicationsIndex in class org.sonar.batch.cpd.JavaCpdIndexer | From | To | |
Rename Parameter | 2 | ||
Rename Parameter publisher : ReportPublisher to index : SonarDuplicationsIndex in method public DefaultCpdIndexer(mappings CpdMappings, fs FileSystem, settings Settings, index SonarDuplicationsIndex) in class org.sonar.batch.cpd.DefaultCpdIndexer | From | To | |
Rename Parameter publisher : ReportPublisher to index : SonarDuplicationsIndex in method public JavaCpdIndexer(fs FileSystem, settings Settings, index SonarDuplicationsIndex) in class org.sonar.batch.cpd.JavaCpdIndexer | From | To |