File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/SyntaxPreferences.java | File path: /sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/SGAtrace/SGATracePanel.java | |||
Method name: void setUseNetbeansTextControl(boolean)
|
Method name: void setAutoRefresh(boolean)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if (_useNetbeansTextControl != data)↵ | 1 | if (↵ | |
2 | {↵ | |||
3 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.USE_NETBEANS_CONTROL, _useNetbeansTextControl, data);↵ | |||
4 | _useNetbeansTextControl = data↵ | 2 | enable != _autoRefresh)↵ | |
3 | {↵ | |||
4 | _autoRefresh = enable;↵ | |||
5 | ;↵ | 5 | resetTimer();↵ | |
6 | } | 6 |
| |
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 | 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) | 1.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (_useNetbeansTextControl != data) |
| 1 | if (enable != _autoRefresh) | |||||||||||||
2 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.USE_NETBEANS_CONTROL, _useNetbeansTextControl, data); |
| | ||||||||||||||
3 | _useNetbeansTextControl = data; |
| 2 | _autoRefresh = enable; | |||||||||||||
|
| 3 | resetTimer(); |
Row | Violation |
---|---|
1 | Unmatched statement getPropertyChangeReporter().firePropertyChange(IPropertyNames.USE_NETBEANS_CONTROL,_useNetbeansTextControl,data); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
2 | Unmatched statement resetTimer(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |