File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/preferences/SquirrelPreferences.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/preferences/SquirrelPreferences.java | |||
Method name: void setShowDebugLogMessages(boolean)
|
Method name: void setShowMainStatusBar(boolean)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (data != _showDebugLogMessages)↵ | 1 | if (data != _show↵ | |
2 | {↵ | |||
3 | final boolean oldValue = _showDebugLogMessages;↵ | |||
4 | _showDebugLogMessages = data;↵ | |||
5 | ↵ | 2 | MainStatusBar)↵ | |
3 | {↵ | |||
4 | final boolean oldValue = _showMainStatusBar;↵ | |||
5 | _showMainStatusBar = data;↵ | |||
6 | getPropertyChangeReporter().firePropertyChange(↵ | 6 | getPropertyChangeReporter().firePropertyChange(↵ | |
7 | IPropertyNames.SHOW_DEBUG_LOG_MESSAGES,↵ | 7 | IPropertyNames.SHOW_↵ | |
8 | oldValue, _showDebugLogMessages);↵ | |||
9 | ↵ | 8 | MAIN_STATUS_BAR,↵ | |
9 | oldValue, _showMainStatusBar);↵ | |||
10 | } | 10 | } | |
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 declared in the same class |
Number of node comparisons | 16 |
Number of mapped statements | 4 |
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.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (data != _showDebugLogMessages) |
| 1 | if (data != _showMainStatusBar) | |||||||||||||
2 | final boolean oldValue = _showDebugLogMessages; |
| 2 | final boolean oldValue = _showMainStatusBar; | |||||||||||||
3 | _showDebugLogMessages = data; |
| 3 | _showMainStatusBar = data; | |||||||||||||
4 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_DEBUG_LOG_MESSAGES, oldValue, _showDebugLogMessages); |
| 4 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_MAIN_STATUS_BAR, oldValue, _showMainStatusBar); |
Row | Violation |
---|