Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
22 | 2 | 3 | 0.994 | statement_sequence[9] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 22 | 196 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddUnimplementedConstructorsOperation.java |
2 | 22 | 170 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddUnimplementedMethodsOperation.java |
| ||||
ImportRewrite importRewrite = StubUtility.createImportRewrite(fASTRoot, true); ITypeBinding currTypeBinding = fType; ListRewrite memberRewriter = null; ASTNode node = fASTRoot.findDeclaringNode(currTypeBinding); if (node instanceof AnonymousClassDeclaration) { memberRewriter = astRewrite.getListRewrite(node, AnonymousClassDeclaration.BODY_DECLARATIONS_PROPERTY); } else if (node instanceof AbstractTypeDeclaration) { ChildListPropertyDescriptor property = ((AbstractTypeDeclaration) node).getBodyDeclarationsProperty(); memberRewriter = astRewrite.getListRewrite(node, property); } else { throw new IllegalArgumentException(); // not possible, we checked this in the constructor } final CodeGenerationSettings settings = JavaPreferencesSettings.getCodeGenerationSettings(cu.getJavaProject()); settings.createComments = fCreateComments; ASTNode insertion = getNodeToInsertBefore(memberRewriter); IMethodBinding[] toImplement = fConstructorsToImplement; |
| ||||
ImportRewrite importRewrite = StubUtility.createImportRewrite(fASTRoot, true); ITypeBinding currTypeBinding = fType; ListRewrite memberRewriter = null; ASTNode node = fASTRoot.findDeclaringNode(currTypeBinding); if (node instanceof AnonymousClassDeclaration) { memberRewriter = astRewrite.getListRewrite(node, AnonymousClassDeclaration.BODY_DECLARATIONS_PROPERTY); } else if (node instanceof AbstractTypeDeclaration) { ChildListPropertyDescriptor property = ((AbstractTypeDeclaration) node).getBodyDeclarationsProperty(); memberRewriter = astRewrite.getListRewrite(node, property); } else { throw new IllegalArgumentException(); // not possible, we checked this in the constructor } final CodeGenerationSettings settings = JavaPreferencesSettings.getCodeGenerationSettings(cu.getJavaProject()); settings.createComments = fDoCreateComments; ASTNode insertion = getNodeToInsertBefore(memberRewriter); IMethodBinding[] methodsToImplement = fMethodsToImplement; |
| |||
ImportRewrite importRewrite = StubUtility.createImportRewrite(fASTRoot, true); ITypeBinding currTypeBinding = fType; ListRewrite memberRewriter = null; ASTNode node = fASTRoot.findDeclaringNode(currTypeBinding); if (node instanceof AnonymousClassDeclaration) { memberRewriter = astRewrite.getListRewrite(node, AnonymousClassDeclaration.BODY_DECLARATIONS_PROPERTY); } else if (node instanceof AbstractTypeDeclaration) { ChildListPropertyDescriptor property = ((AbstractTypeDeclaration) node).getBodyDeclarationsProperty(); memberRewriter = astRewrite.getListRewrite(node, property); } else { throw new IllegalArgumentException(); // not possible, we checked this in the constructor } final CodeGenerationSettings settings = JavaPreferencesSettings.getCodeGenerationSettings(cu.getJavaProject()); settings.createComments = [[#variable5ef6db80]]; ASTNode insertion = getNodeToInsertBefore(memberRewriter); IMethodBinding[] [[#variable5ef6dba0]]= [[#variable98759440]]; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5ef6db80]] | fCreateComments |
1 | 2 | [[#5ef6db80]] | fDoCreateComments |
2 | 1 | [[#5ef6dba0]] | toImplement |
2 | 2 | [[#5ef6dba0]] | methodsToImplement |
3 | 1 | [[#98759440]] | fConstructorsToImplement |
3 | 2 | [[#98759440]] | fMethodsToImplement |