Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
2 | 2 | 3 | 0.958 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 2 | 793 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/IntroduceFactoryRefactoring.java |
2 | 2 | 448 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/sef/SelfEncapsulateFieldRefactoring.java |
| ||||
// Need to use a qualified name for the factory method if we're not // in the context of the class holding the factory. AbstractTypeDeclaration callOwner = (AbstractTypeDeclaration) ASTNodes.getParent(ctorCall, AbstractTypeDeclaration.class ); ITypeBinding callOwnerBinding = callOwner.resolveBinding(); |
| ||||
AbstractTypeDeclaration declaration = (AbstractTypeDeclaration) ASTNodes.getParent(fFieldDeclaration, AbstractTypeDeclaration.class ); ITypeBinding type = declaration.resolveBinding(); |
| |||
// Need to use a qualified name for the factory method if we're not // in the context of the class holding the factory. AbstractTypeDeclaration [[#variable5a4d7c80]]= (AbstractTypeDeclaration) ASTNodes.getParent( [[#variable5a4d7ba0]], AbstractTypeDeclaration.class ); ITypeBinding [[#variable5a4d7c00]]= [[#variable5a4d7c80]].resolveBinding(); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5a4d7c80]] | declaration |
1 | 2 | [[#5a4d7c80]] | callOwner |
2 | 1 | [[#5a4d7ba0]] | fFieldDeclaration |
2 | 2 | [[#5a4d7ba0]] | ctorCall |
3 | 1 | [[#5a4d7c00]] | type |
3 | 2 | [[#5a4d7c00]] | callOwnerBinding |