Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 2 | 0.973 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 33 | plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/util/LayoutUtil.java |
2 | 6 | 24 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/LayoutUtil.java |
| ||||
/* * Calculates the number of columns needed by field editors */ public static int getNumberOfColumns(MethodStubsSelectionButtonGroup[] editors) { int columnCount = 0; for (int i = 0; i < editors.length; i++) { columnCount = Math.max(editors[i].getNumberOfControls(), columnCount); } return columnCount; } |
| ||||
/** * Calculates the number of columns needed by field editors */ public static int getNumberOfColumns(DialogField[] editors) { int nCulumns = 0; for (int i = 0; i < editors.length; i++) { nCulumns = Math.max(editors[i].getNumberOfControls(), nCulumns); } return nCulumns; } |
| |||
/** * Calculates the number of columns needed by field editors */ /* * Calculates the number of columns needed by field editors */ public static int getNumberOfColumns( [[#variable4d8ddf20]][] editors) { int [[#variable4d8ddec0]]= 0; for (int i = 0; i < editors.length; i++) { [[#variable4d8ddec0]]= Math.max(editors[i].getNumberOfControls(), [[#variable4d8ddec0]]); } return [[#variable4d8ddec0]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4d8ddf20]] | DialogField |
1 | 2 | [[#4d8ddf20]] | MethodStubsSelectionButtonGroup |
2 | 1 | [[#4d8ddec0]] | nCulumns |
2 | 2 | [[#4d8ddec0]] | columnCount |