Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 2 | 0.980 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 65 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RefactoringAnalyzeUtil.java |
2 | 3 | 70 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RefactoringAnalyzeUtil.java |
| ||||
public static MethodDeclaration getMethodDeclaration(TextEdit edit, TextChange change, CompilationUnit cuNode) { ASTNode decl = RefactoringAnalyzeUtil.findSimpleNameNode(RefactoringAnalyzeUtil.getNewTextRange(edit, change), cuNode); return ((MethodDeclaration) ASTNodes.getParent(decl, MethodDeclaration.class )); } |
| ||||
public static Block getBlock(TextEdit edit, TextChange change, CompilationUnit cuNode) { ASTNode decl = RefactoringAnalyzeUtil.findSimpleNameNode(RefactoringAnalyzeUtil.getNewTextRange(edit, change), cuNode); return ((Block) ASTNodes.getParent(decl, Block.class )); } |
| |||
public static [[#variableb55df880]] [[#variableb5304520]](TextEdit edit, TextChange change, CompilationUnit cuNode) { ASTNode decl = RefactoringAnalyzeUtil.findSimpleNameNode(RefactoringAnalyzeUtil.getNewTextRange(edit, change), cuNode); return (( [[#variableb55df880]]) ASTNodes.getParent(decl, [[#variableb55df880]].class )); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b55df880]] | MethodDeclaration |
1 | 2 | [[#b55df880]] | Block |
2 | 1 | [[#b5304520]] | getMethodDeclaration |
2 | 2 | [[#b5304520]] | getBlock |