File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/ObjectArrayDataSet.java | File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/MapDataSet.java | |||
Method name: ColumnDisplayDefinition[] createColumnDefinitions()
|
Method name: ColumnDisplayDefinition[] createColumnDefinitions()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | final int columnCount = getColumnCount();↵ | 1 | final int columnCount = getColumnCount();↵ | |
2 | ColumnDisplayDefinition[] columnDefs =↵ | 2 | ColumnDisplayDefinition[] columnDefs =↵ | |
3 | new ColumnDisplayDefinition[columnCount];↵ | 3 | new ColumnDisplayDefinition[columnCount];↵ | |
4 | for (int i = 0; i < columnCount; ++i)↵ | 4 | for (int i = 0; i < columnCount; ++i)↵ | |
5 | {↵ | |||
6 | ↵ | 5 | {↵ | |
7 | columnDefs[i] = new ColumnDisplayDefinition(100, " ");↵ | 6 | columnDefs[i] = new ColumnDisplayDefinition(↵ | |
8 | }↵ | |||
9 | ↵ | 7 | s_hdgLens[i], s_hdgs[i]);↵ | |
8 | }↵ | |||
10 | return columnDefs; | 9 | return columnDefs; | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 13 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 1.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | final int columnCount = getColumnCount(); | 1 | final int columnCount = getColumnCount(); | ||||||||||||||||
2 | ColumnDisplayDefinition[] columnDefs = new ColumnDisplayDefinition[columnCount]; | 2 | ColumnDisplayDefinition[] columnDefs = new ColumnDisplayDefinition[columnCount]; | ||||||||||||||||
3 | for (int i = 0; i < columnCount; ++i) | 3 | for (int i = 0; i < columnCount; ++i) | ||||||||||||||||
4 | columnDefs[i] = new ColumnDisplayDefinition(100, " "); |
| 4 | columnDefs[i] = new ColumnDisplayDefinition(s_hdgLens[i], s_hdgs[i]); | |||||||||||||||
5 | return columnDefs; | 5 | return columnDefs; |
Row | Violation |
---|---|
1 | Expression s_hdgLens[i] cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression s_hdgs[i] cannot be parameterized, because it has dependencies to/from statements that will be extracted |