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 setShowSessionStartupTimeHint(boolean)
|
Method name: void setShowMainStatusBar(boolean)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (data != _showSessionStartupTimeHint)↵ | 1 | if (data != _showMainStatu↵ | |
2 | {↵ | |||
3 | ↵ | 2 | sBar)↵ | |
3 | {↵ | |||
4 | final boolean oldValue = _showSessionStartupTimeHint;↵ | 4 | final boolean oldValue = _showMainStatu↵ | |
5 | _showSessio↵ | 5 | sBar;↵ | |
6 | nStartupTimeHint = data;↵ | 6 | _showMainStatu↵ | |
7 | ↵ | 7 | sBar = data;↵ | |
8 | getPropertyChangeReporter().firePropertyChange(↵ | 8 | getPropertyChangeReporter().firePropertyChange(↵ | |
9 | IPropertyNames.SHOW_SESSION_STARTUP_TIME_HINT,↵ | 9 | IPropertyNames.SHOW_MAIN_STATU↵ | |
10 | ↵ | 10 | S_BAR,↵ | |
11 | oldValue, _showSessionStartupTimeHint);↵ | 11 | oldValue, _showMainStatu↵ | |
12 | ↵ | 12 | sBar);↵ | |
13 | } | 13 | } | |
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.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (data != _showSessionStartupTimeHint) |
| 1 | if (data != _showMainStatusBar) | |||||||||||||
2 | final boolean oldValue = _showSessionStartupTimeHint; |
| 2 | final boolean oldValue = _showMainStatusBar; | |||||||||||||
3 | _showSessionStartupTimeHint = data; |
| 3 | _showMainStatusBar = data; | |||||||||||||
4 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_SESSION_STARTUP_TIME_HINT, oldValue, _showSessionStartupTimeHint); |
| 4 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_MAIN_STATUS_BAR, oldValue, _showMainStatusBar); |
Row | Violation |
---|