File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/KeyManager.java | File path: /sql12/test/src/net/sourceforge/squirrel_sql/client/update/gui/AbstractTableModelTest.java | |||
Method name: boolean isInStopAtArray(char)
|
Method name: boolean isEditableColumn(int)
|
|||
Number of AST nodes: 2 | Number of AST nodes: 3 | |||
1 | if(toCheck == STOP_AT[i])↵ | |||
2 | {↵ | |||
3 | ↵ | 1 | for (int i = 0; i < editableColumns.length; i++) {↵ | |
2 | if (colIdx == editableColumns[i]) {↵ | |||
4 | return true;↵ | 3 | return true;↵ | |
5 | ↵ | 4 | }↵ | |
6 | } | 5 | } | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 5 |
Number of mapped statements | 2 |
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) | 0.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | if (toCheck == STOP_AT[i]) |
| 2 | if (colIdx == editableColumns[i]) | |||||||||||||||||||||
3 | return true; | 3 | return true; |
Row | Violation |
---|---|
1 | Type char of variable toCheck does not match with type int of variable colIdx |
2 | Type char[] of variable STOP_AT does not match with type int[] of variable editableColumns |
3 | Not all possible execution flows end in a return statement |