Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 2 | 0.993 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 64 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ASTNodeSearchUtil.java |
2 | 8 | 254 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ASTNodeSearchUtil.java |
| ||||
/** misses javadoc nodes */ public static ASTNode[] getAstNodes(SearchMatch[] searchResults, CompilationUnit cuNode) { List result = new ArrayList(searchResults.length); for (int i = 0; i < searchResults.length; i++) { ASTNode node = getAstNode(searchResults[i], cuNode); if (node != null) result.add(node); } return (ASTNode[]) result.toArray(new ASTNode[result.size()]); } |
| ||||
public static ASTNode[] findNodes(SearchMatch[] searchResults, CompilationUnit cuNode) { List result = new ArrayList(searchResults.length); for (int i = 0; i < searchResults.length; i++) { ASTNode node = findNode(searchResults[i], cuNode); if (node != null) result.add(node); } return (ASTNode[]) result.toArray(new ASTNode[result.size()]); } |
| |||
/** misses javadoc nodes */ public static ASTNode[] [[#variable9bb24600]](SearchMatch[] searchResults, CompilationUnit cuNode) { List result = new ArrayList(searchResults.length); for (int i = 0; i < searchResults.length; i++) { ASTNode node = [[#variable9bb24680]](searchResults[i], cuNode); if (node != null) result.add(node); } return (ASTNode[]) result.toArray(new ASTNode[result.size()]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#9bb24600]] | getAstNodes |
1 | 2 | [[#9bb24600]] | findNodes |
2 | 1 | [[#9bb24680]] | getAstNode |
2 | 2 | [[#9bb24680]] | findNode |