Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 2 | 0.978 | executable_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 166 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/ControlStatementsCleanUp.java |
2 | 5 | 171 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/fix/ControlStatementsCleanUp.java |
| ||||
{ buf.append("for (int element : ids) {\n"); //$NON-NLS-1$ buf.append(" double value= element / 2; \n"); //$NON-NLS-1$ buf.append(" System.out.println(value);\n"); //$NON-NLS-1$ buf.append("}\n"); //$NON-NLS-1$ } |
| ||||
{ buf.append("for (int i = 0; i < ids.length; i++) {\n"); //$NON-NLS-1$ buf.append(" double value= ids[i] / 2; \n"); //$NON-NLS-1$ buf.append(" System.out.println(value);\n"); //$NON-NLS-1$ buf.append("}\n"); //$NON-NLS-1$ } |
| |||
{ buf.append( [[#variable4eb7ef60]]); //$NON-NLS-1$ buf.append( [[#variable4eb7ef00]]); //$NON-NLS-1$ buf.append(" System.out.println(value);\n"); //$NON-NLS-1$ buf.append("}\n"); //$NON-NLS-1$ } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4eb7ef60]] | "for (int element : ids) {\n" |
1 | 2 | [[#4eb7ef60]] | "for (int i = 0; i < ids.length; i++) {\n" |
2 | 1 | [[#4eb7ef00]] | " double value= element / 2; \n" |
2 | 2 | [[#4eb7ef00]] | " double value= ids[i] / 2; \n" |