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 setShowColoriconsInToolbar(boolean)
|
Method name: void setShowAliasesToolBar(boolean)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (data != _showColorIconsInToolbars)↵ | 1 | if (data != _showAliasesToolBar)↵ | |
2 | {↵ | 2 | {↵ | |
3 | final boolean oldValue = _showColorIconsInToolbars;↵ | 3 | final boolean oldValue = _showAliasesToolBar;↵ | |
4 | _showColorIconsInToolbars = data;↵ | 4 | _showAliasesToolBar = data;↵ | |
5 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_COLOR_ICONS_IN_TOOLBAR,↵ | 5 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_ALIASES_TOOL_BAR,↵ | |
6 | oldValue, _showColorIconsInToolbars);↵ | 6 | oldValue, _showAliasesToolBar);↵ | |
7 | } | 7 |
| |
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 != _showColorIconsInToolbars) |
| 1 | if (data != _showAliasesToolBar) | |||||||||||||
2 | final boolean oldValue = _showColorIconsInToolbars; |
| 2 | final boolean oldValue = _showAliasesToolBar; | |||||||||||||
3 | _showColorIconsInToolbars = data; |
| 3 | _showAliasesToolBar = data; | |||||||||||||
4 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_COLOR_ICONS_IN_TOOLBAR, oldValue, _showColorIconsInToolbars); |
| 4 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_ALIASES_TOOL_BAR, oldValue, _showAliasesToolBar); |
Row | Violation |
---|