Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 3 | 0.961 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 50 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/GenerateConstructorUsingFieldsValidator.java |
2 | 7 | 355 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddUnimplementedConstructorsAction.java |
| ||||
private int countSelectedFields(Object[] selection) { int count = 0; for (int index = 0; index < selection.length; index++) { if (selection[index] instanceof IVariableBinding) count++; } return count; } |
| ||||
private int countSelectedMethods(Object[] selection) { int count = 0; for (int i = 0; i < selection.length; i++) { if (selection[i] instanceof IMethodBinding) count++; } return count; } |
| |||
private int [[#variableb1e9fce0]](Object[] selection) { int count = 0; for (int [[#variableb1e9fc60]]= 0; [[#variableb1e9fc60]] < selection.length; [[#variableb1e9fc60]]++) { if (selection[ [[#variableb1e9fc60]]] instanceof [[#variableb1e9fbe0]]) count++; } return count; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b1e9fce0]] | countSelectedMethods |
1 | 2 | [[#b1e9fce0]] | countSelectedFields |
2 | 1 | [[#b1e9fc60]] | i |
2 | 2 | [[#b1e9fc60]] | index |
3 | 1 | [[#b1e9fbe0]] | IMethodBinding |
3 | 2 | [[#b1e9fbe0]] | IVariableBinding |