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 setWarnJreJdbcMismatch(boolean)
|
Method name: void setShowContentsWhenDragging(boolean)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (data != _warnJreJdbcMismatch)↵ | 1 | if (data != _↵ | |
2 | {↵ | |||
3 | final boolean oldValue = _warnJreJdbcMismatch;↵ | |||
4 | _warnJreJdbcMismatch = data;↵ | |||
5 | ↵ | 2 | showContentsWhenDragging)↵ | |
3 | {↵ | |||
4 | final boolean oldValue = _showContentsWhenDragging;↵ | |||
5 | _showContentsWhenDragging = data;↵ | |||
6 | getPropertyChangeReporter().firePropertyChange(↵ | 6 | getPropertyChangeReporter().firePropertyChange(↵ | |
7 | IPropertyNames.WARN_JRE_JDBC_MISMATCH,↵ | |||
8 | oldValue, _warnJreJdbcMismatch);↵ | |||
9 | ↵ | 7 | IPropertyNames.SHOW_CONTENTS_WHEN_DRAGGING,↵ | |
8 | oldValue, _showContentsWhenDragging);↵ | |||
10 | } | 9 | } | |
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 != _warnJreJdbcMismatch) |
| 1 | if (data != _showContentsWhenDragging) | |||||||||||||
2 | final boolean oldValue = _warnJreJdbcMismatch; |
| 2 | final boolean oldValue = _showContentsWhenDragging; | |||||||||||||
3 | _warnJreJdbcMismatch = data; |
| 3 | _showContentsWhenDragging = data; | |||||||||||||
4 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.WARN_JRE_JDBC_MISMATCH, oldValue, _warnJreJdbcMismatch); |
| 4 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_CONTENTS_WHEN_DRAGGING, oldValue, _showContentsWhenDragging); |
Row | Violation |
---|