File path: /sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/SGAtrace/SGATracePanel.java | File path: /sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/SGAtrace/SGATracePanel.java | |||
Method name: void setAutoRefreshPeriod(int)
|
Method name: void setAutoRefresh(boolean)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if (_refreshPeriod != seconds)↵ | 1 | if (enable != _autoRefresh)↵ | |
2 | {↵ | 2 | {↵ | |
3 | _refreshPeriod = seconds;↵ | 3 | _autoRefresh = enable;↵ | |
4 | resetTimer();↵ | 4 | resetTimer();↵ | |
5 | } | 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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 9 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (_refreshPeriod != seconds) |
| 1 | if (enable != _autoRefresh) | |||||||||||||||||||||
|
| 2 | _autoRefresh = enable; | ||||||||||||||||||||||
2 | _refreshPeriod = seconds; |
| | ||||||||||||||||||||||
3 | resetTimer(); | 3 | resetTimer(); |
Row | Violation |
---|---|
1 | Type int of variable _refreshPeriod does not match with type boolean of variable enable |
2 | Type int of variable seconds does not match with type boolean of variable _autoRefresh |
3 | Unmatched statement _autoRefresh=enable; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
4 | Unmatched statement _refreshPeriod=seconds; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |