85877295a7db169742f56bc6c44b883267923cf7
Files Diff
- Added: 9
- Removed: 10
- Renamed: 0
- Modified: 31
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Extract Subclass | 1 | ||
Extract Subclass org.sonar.api.batch.sensor.duplication.internal.DefaultDuplication from class org.sonar.api.batch.sensor.duplication.DuplicationGroup | From | To | |
Change Parameter Type | 4 | ||
Change Parameter Type part : DuplicationGroup.Block to part : Duplication.Block in method private toXml(xml StringBuilder, part Duplication.Block) : void in class org.sonar.batch.duplication.DuplicationUtils | From | To | |
Change Parameter Type block : DuplicationGroup.Block to block : Duplication.Block in method private addBlock(blockId int, block Duplication.Block, to FileSourceDb.Data.Builder) : void in class org.sonar.batch.index.SourceDataFactory | From | To | |
Change Parameter Type blocks : List<DuplicationGroup> to duplication : DefaultDuplication in method public put(effectiveKey String, duplication DefaultDuplication) : DuplicationCache in class org.sonar.batch.duplication.DuplicationCache | From | To | |
Change Parameter Type duplications : Iterable<DuplicationGroup> to duplications : Iterable<DefaultDuplication> in method public toXml(duplications Iterable<DefaultDuplication>) : String in class org.sonar.batch.duplication.DuplicationUtils | From | To | |
Push Down Attribute | 2 | ||
Push Down Attribute private duplicates : List<Block> from class org.sonar.api.batch.sensor.duplication.DuplicationGroup to private duplicates : List<Block> from class org.sonar.api.batch.sensor.duplication.internal.DefaultDuplication | From | To | |
Push Down Attribute private originBlock : Block from class org.sonar.api.batch.sensor.duplication.DuplicationGroup to private originBlock : Block from class org.sonar.api.batch.sensor.duplication.internal.DefaultDuplication | From | To | |
Rename Class | 5 | ||
Rename Class org.sonar.api.batch.sensor.duplication.DuplicationGroupTest renamed to org.sonar.api.batch.sensor.duplication.DuplicationTest | From | To | |
Rename Class org.sonar.api.batch.sensor.duplication.DuplicationGroup renamed to org.sonar.api.batch.sensor.duplication.Duplication | From | To | |
Rename Class org.sonar.xoo.lang.XooTokenizerSensorTest renamed to org.sonar.xoo.lang.XooTokenizerTest | From | To | |
Rename Class org.sonar.batch.duplication.DuplicationGroupValueCoder renamed to org.sonar.batch.duplication.DefaultDuplicationValueCoder | From | To | |
Rename Class org.sonar.api.batch.sensor.duplication.internal.DefaultDuplicationBuilderTest renamed to org.sonar.api.batch.sensor.duplication.internal.DefaultDuplicationTest | From | To | |
Move And Rename Class | 1 | ||
Move And Rename Class org.sonar.api.batch.sensor.duplication.DuplicationGroup moved and renamed to org.sonar.api.batch.sensor.duplication.internal.DefaultDuplication | From | To | |
Move Class | 1 | ||
Move Class org.sonar.api.batch.sensor.duplication.DuplicationGroup.Block moved to org.sonar.api.batch.sensor.duplication.Duplication.Block | From | To | |
Change Variable Type | 25 | ||
Change Variable Type dups : DuplicationGroup.Block to dups : Duplication.Block in method package applyDuplications(inputFileKey String, to FileSourceDb.Data.Builder) : void in class org.sonar.batch.index.SourceDataFactory | From | To | |
Change Variable Type cloneGroup : DuplicationGroup to cloneGroup : Duplication in method public testIntraFileDuplications() : void in class org.sonar.batch.mediumtest.cpd.CpdMediumTest | From | To | |
Change Variable Type builder : DuplicationTokenBuilder to sourceCode : SourceCode in method public testExecution() : void in class org.sonar.xoo.lang.XooTokenizerTest | From | To | |
Change Variable Type originBlock : DuplicationGroup.Block to originBlock : Duplication.Block in method public should_insert_duplications() : void in class org.sonar.batch.index.DuplicationPersisterTest | From | To | |
Change Variable Type rhs : DuplicationGroup to rhs : DefaultDuplication in method public equals(obj Object) : boolean in class org.sonar.api.batch.sensor.duplication.internal.DefaultDuplication | From | To | |
Change Variable Type duplicationGroupsFile1 : List<DuplicationGroup> to duplicationGroupsFile1 : List<Duplication> in method public testCrossFileDuplications() : void in class org.sonar.batch.mediumtest.cpd.CpdMediumTest | From | To | |
Change Variable Type cloneGroupFile1 : DuplicationGroup to cloneGroupFile1 : Duplication in method public testCrossFileDuplications() : void in class org.sonar.batch.mediumtest.cpd.CpdMediumTest | From | To | |
Change Variable Type duplicationGroups : List<DuplicationGroup> to duplicationGroups : List<Duplication> in method public testIntraFileDuplications() : void in class org.sonar.batch.mediumtest.cpd.CpdMediumTest | From | To | |
Change Variable Type b : DuplicationGroup.Block to b : Duplication.Block in method public put(value Value, object Object, context CoderContext) : void in class org.sonar.batch.duplication.DuplicationBlockValueCoder | From | To | |
Change Variable Type it : Iterator<DuplicationGroup> to it : Iterator<DefaultDuplication> in method package applyDuplications(inputFileKey String, to FileSourceDb.Data.Builder) : void in class org.sonar.batch.index.SourceDataFactory | From | To | |
Change Variable Type cloneGroupFile2 : DuplicationGroup to cloneGroupFile2 : Duplication in method public testCrossFileDuplications() : void in class org.sonar.batch.mediumtest.cpd.CpdMediumTest | From | To | |
Change Variable Type group : DuplicationGroup to group : Duplication in method package applyDuplications(inputFileKey String, to FileSourceDb.Data.Builder) : void in class org.sonar.batch.index.SourceDataFactory | From | To | |
Change Variable Type dupsIt : Iterator<DuplicationGroup.Block> to dupsIt : Iterator<Duplication.Block> in method package applyDuplications(inputFileKey String, to FileSourceDb.Data.Builder) : void in class org.sonar.batch.index.SourceDataFactory | From | To | |
Change Variable Type b1 : DuplicationGroup.Block to b1 : Duplication.Block in method public testBlockEqualsAndCo() : void in class org.sonar.api.batch.sensor.duplication.DuplicationTest | From | To | |
Change Variable Type duplication : DuplicationGroup to duplication : Duplication in method public toXml(duplications Iterable<DefaultDuplication>) : String in class org.sonar.batch.duplication.DuplicationUtils | From | To | |
Change Variable Type c : DuplicationGroup to c : DefaultDuplication in method public put(value Value, object Object, context CoderContext) : void in class org.sonar.batch.duplication.DefaultDuplicationValueCoder | From | To | |
Change Variable Type group : List<DuplicationGroup> to group : Iterable<DefaultDuplication> in method private getMeasuresOfASingleMetric(filter MeasuresFilter<M>) : Collection<Measure> in class org.sonar.batch.deprecated.decorator.DefaultDecoratorContext | From | To | |
Change Variable Type builder : DefaultDuplicationBuilder to file1 : DefaultInputFile in method public test() : void in class org.sonar.api.batch.sensor.duplication.internal.DefaultDuplicationTest | From | To | |
Change Variable Type entry : List<DuplicationGroup> to entry : Iterable<DefaultDuplication> in method public should_add_clone_groups() : void in class org.sonar.batch.duplication.DuplicationCacheTest | From | To | |
Change Variable Type groups : List<DuplicationGroup> to groups : Iterable<DefaultDuplication> in method package applyDuplications(inputFileKey String, to FileSourceDb.Data.Builder) : void in class org.sonar.batch.index.SourceDataFactory | From | To | |
Change Variable Type block : DuplicationGroup.Block to block : Duplication.Block in method public put(value Value, object Object, context CoderContext) : void in class org.sonar.batch.duplication.DefaultDuplicationValueCoder | From | To | |
Change Variable Type b2 : DuplicationGroup.Block to b2 : Duplication.Block in method public testBlockEqualsAndCo() : void in class org.sonar.api.batch.sensor.duplication.DuplicationTest | From | To | |
Change Variable Type duplicationGroupsFile2 : List<DuplicationGroup> to duplicationGroupsFile2 : List<Duplication> in method public testCrossFileDuplications() : void in class org.sonar.batch.mediumtest.cpd.CpdMediumTest | From | To | |
Change Variable Type g : DuplicationGroup to g : DefaultDuplication in method public get(value Value, clazz Class, context CoderContext) : Object in class org.sonar.batch.duplication.DefaultDuplicationValueCoder | From | To | |
Change Variable Type part : DuplicationGroup.Block to part : Duplication.Block in method public toXml(duplications Iterable<DefaultDuplication>) : String in class org.sonar.batch.duplication.DuplicationUtils | From | To | |
Extract Variable | 1 | ||
Extract Variable originPart : ClonePart in method package save(context SensorContext, inputFile InputFile, duplications Iterable<CloneGroup>) : void from class org.sonar.batch.cpd.JavaCpdEngine | From | To | |
Rename Method | 1 | ||
Rename Method public DuplicationGroup(originBlock Block) renamed to public setOriginBlock(originBlock Block) : DefaultDuplication in class org.sonar.api.batch.sensor.duplication.internal.DefaultDuplication | From | To | |
Push Down Method | 5 | ||
Push Down Method public originBlock() : Block from class org.sonar.api.batch.sensor.duplication.DuplicationGroup to public originBlock() : Block from class org.sonar.api.batch.sensor.duplication.internal.DefaultDuplication | From | To | |
Push Down Method public toString() : String from class org.sonar.api.batch.sensor.duplication.DuplicationGroup to public toString() : String from class org.sonar.api.batch.sensor.duplication.internal.DefaultDuplication | From | To | |
Push Down Method public equals(obj Object) : boolean from class org.sonar.api.batch.sensor.duplication.DuplicationGroup to public equals(obj Object) : boolean from class org.sonar.api.batch.sensor.duplication.internal.DefaultDuplication | From | To | |
Push Down Method public hashCode() : int from class org.sonar.api.batch.sensor.duplication.DuplicationGroup to public hashCode() : int from class org.sonar.api.batch.sensor.duplication.internal.DefaultDuplication | From | To | |
Push Down Method public duplicates() : List<Block> from class org.sonar.api.batch.sensor.duplication.DuplicationGroup to public duplicates() : List<Block> from class org.sonar.api.batch.sensor.duplication.internal.DefaultDuplication | From | To | |
Rename Variable | 2 | ||
Rename Variable builder : DefaultDuplicationBuilder to file1 : DefaultInputFile in method public test() : void in class org.sonar.api.batch.sensor.duplication.internal.DefaultDuplicationTest | From | To | |
Rename Variable builder : DuplicationTokenBuilder to sourceCode : SourceCode in method public testExecution() : void in class org.sonar.xoo.lang.XooTokenizerTest | From | To | |
Change Return Type | 2 | ||
Change Return Type List<DuplicationGroup> to List<Duplication> in method public duplicationsFor(inputFile InputFile) : List<Duplication> in class org.sonar.batch.mediumtest.TaskResult | From | To | |
Change Return Type List<DuplicationGroup> to Iterable<DefaultDuplication> in method public byComponent(effectiveKey String) : Iterable<DefaultDuplication> in class org.sonar.batch.duplication.DuplicationCache | From | To | |
Change Attribute Type | 2 | ||
Change Attribute Type duplications : Map<String,List<DuplicationGroup>> to duplications : Map<String,List<Duplication>> in class org.sonar.batch.mediumtest.TaskResult | From | To | |
Change Attribute Type cache : Cache<List<DuplicationGroup>> to cache : Cache<DefaultDuplication> in class org.sonar.batch.duplication.DuplicationCache | From | To | |
Rename Parameter | 2 | ||
Rename Parameter blocks : List<DuplicationGroup> to duplication : DefaultDuplication in method public put(effectiveKey String, duplication DefaultDuplication) : DuplicationCache in class org.sonar.batch.duplication.DuplicationCache | From | To | |
Rename Parameter tokens : SourceCode to sourceFile : SourceCode in method public tokenize(sourceFile SourceCode, tokenEntries Tokens) : void in class net.sourceforge.pmd.cpd.Tokenizer | From | To |