CloneSet1305


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10240.982statement_sequence[9]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110622
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeSignatureRefactoring.java
210642
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeSignatureRefactoring.java
Clone Instance
1
Line Count
10
Source Line
622
Source File
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();


Clone Instance
2
Line Count
10
Source Line
642
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeSignatureRefactoring.java

                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();


Clone AbstractionParameter Count: 4Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#ba2c5420]]
");}}" 
12[[#ba2c5420]]
CONST_CLOSE 
21[[#b6b872c0]]
[] 
22[[#b6b872c0]]
31[[#94538b40]]
selectedNodes 
32[[#94538b40]]
selected 
41[[#94538ae0]]
getSelectedNodes 
42[[#94538ae0]]
getFirstSelectedNode