Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 3 | 0.959 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 611 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/PromoteTempToFieldRefactoring.java |
2 | 6 | 136 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/util/JavaElementUtil.java |
| ||||
for (int i = 0; i < allMethods.length; i++) { MethodDeclaration declaration = allMethods[i]; if (declaration.isConstructor()) result.add(declaration); } return (MethodDeclaration[]) result.toArray(new MethodDeclaration[result.size()]); |
| ||||
for (int i = 0; i < methods.length; i++) { IMethod iMethod = methods[i]; if (iMethod.isConstructor()) result.add(iMethod); } return (IMethod[]) result.toArray(new IMethod[result.size()]); |
| |||
for (int i = 0; i < [[#variable58a22b00]].length; i++) { [[#variable5f166d20]] [[#variable5f166d40]]= [[#variable58a22b00]][i]; if ( [[#variable5f166d40]].isConstructor()) result.add( [[#variable5f166d40]]); } return ( [[#variable5f166d20]][]) result.toArray(new [[#variable5f166d20]][result.size()]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#58a22b00]] | methods |
1 | 2 | [[#58a22b00]] | allMethods |
2 | 1 | [[#5f166d20]] | IMethod |
2 | 2 | [[#5f166d20]] | MethodDeclaration |
3 | 1 | [[#5f166d40]] | iMethod |
3 | 2 | [[#5f166d40]] | declaration |