Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 4 | 0.982 | statement_sequence[9] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 622 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeSignatureRefactoring.java |
2 | 10 | 642 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeSignatureRefactoring.java |
| ||||
int offset = cuBuff.length(); cuBuff.append(trimmed). append(CONST_CLOSE); ASTParser p = ASTParser.newParser(AST.JLS3); p.setSource(cuBuff.toString().toCharArray()); CompilationUnit cu = (CompilationUnit) p.createAST(null); Selection selection = Selection.createFromStartLength(offset, trimmed.length()); SelectionAnalyzer analyzer = new SelectionAnalyzer(selection, false); cu.accept(analyzer); ASTNode selected = analyzer.getFirstSelectedNode(); |
| ||||
int offset = cuBuff.length(); cuBuff.append(trimmed). append(");}}"); //$NON-NLS-1$ ASTParser p = ASTParser.newParser(AST.JLS3); p.setSource(cuBuff.toString().toCharArray()); CompilationUnit cu = (CompilationUnit) p.createAST(null); Selection selection = Selection.createFromStartLength(offset, trimmed.length()); SelectionAnalyzer analyzer = new SelectionAnalyzer(selection, false); cu.accept(analyzer); ASTNode[] selectedNodes = analyzer.getSelectedNodes(); |
| |||
int offset = cuBuff.length(); cuBuff.append(trimmed).append( [[#variableba2c5420]]); //$NON-NLS-1$ ASTParser p = ASTParser.newParser(AST.JLS3); p.setSource(cuBuff.toString().toCharArray()); CompilationUnit cu = (CompilationUnit) p.createAST(null); Selection selection = Selection.createFromStartLength(offset, trimmed.length()); SelectionAnalyzer analyzer = new SelectionAnalyzer(selection, false); cu.accept(analyzer); ASTNode [[#variableb6b872c0]] [[#variable94538b40]]= analyzer. [[#variable94538ae0]](); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#ba2c5420]] | ");}}" |
1 | 2 | [[#ba2c5420]] | CONST_CLOSE |
2 | 1 | [[#b6b872c0]] | [] |
2 | 2 | [[#b6b872c0]] | |
3 | 1 | [[#94538b40]] | selectedNodes |
3 | 2 | [[#94538b40]] | selected |
4 | 1 | [[#94538ae0]] | getSelectedNodes |
4 | 2 | [[#94538ae0]] | getFirstSelectedNode |