File path: /sql12/plugins/smarttools/src/net/sourceforge/squirrel_sql/plugins/smarttools/gui/SmarttoolMissingIndicesFrame.java | File path: /sql12/plugins/smarttools/src/net/sourceforge/squirrel_sql/plugins/smarttools/gui/SmarttoolFindBadNullValuesFrame.java | |||
Method name: void controlComponents(int)
|
Method name: void controlComponents(int)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 6 | |||
1 | if (type == START_WORKING ↵ | 1 | if (type == START_WORKING ↵ | |
2 | || type == STOP_WORKING)↵ | 2 | || type == STOP_WORKING)↵ | |
3 | {↵ | 3 | {↵ | |
4 | boolean b = type == STOP_WORKING;↵ | 4 | boolean b = type == STOP_WORKING;↵ | |
5 | tfTablename.setEnabled(b);↵ | 5 | tfTablename.setEnabled(b);↵ | |
6 | btnStart.setEnabled(b);↵ | 6 | btnStart.setEnabled(b);↵ | |
7 | btnStop.setEnabled(!b);↵ | 7 | btnStop.setEnabled(!b);↵ | |
8 | btnPrint.setEnabled(b ↵ | 8 | btnPrint.setEnabled(b↵ | |
9 | && tblResult.getRowCount() > 0);↵ | 9 | && tblResult.getRowCount() > 0);↵ | |
10 | btnDdl.setEnabled(btnPrint.isEnabled());↵ | 10 | ↵ | |
11 | btnRecordCount.setEnabled(btnPrint.isEnabled());↵ | |||
12 | } | 11 |
| |
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.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 48 |
Number of mapped statements | 6 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 51.1 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
1 | if (type == START_WORKING || type == STOP_WORKING) | 1 | if (type == START_WORKING || type == STOP_WORKING) | |
2 | boolean b = type == STOP_WORKING; | 2 | boolean b = type == STOP_WORKING; | |
3 | tfTablename.setEnabled(b); | 3 | tfTablename.setEnabled(b); | |
4 | btnStart.setEnabled(b); | 4 | btnStart.setEnabled(b); | |
5 | btnStop.setEnabled(!b); | 5 | btnStop.setEnabled(!b); | |
6 | btnPrint.setEnabled(b && tblResult.getRowCount() > 0); | 6 | btnPrint.setEnabled(b && tblResult.getRowCount() > 0); | |
7 | btnDdl.setEnabled(btnPrint.isEnabled()); | | ||
8 | btnRecordCount.setEnabled(btnPrint.isEnabled()); | |
Row | Violation |
---|