File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/properties/SessionProperties.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/properties/SessionProperties.java | |||
Method name: void setSQLExecutionTabPlacement(int)
|
Method name: void setContentsLimitRows(boolean)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (_sqlExecutionTabPlacement != value)↵ | 1 | if (_contentsLimitRows != value)↵ | |
2 | {↵ | 2 | {↵ | |
3 | final int oldValue = _sqlExecutionTabPlacement;↵ | 3 | final boolean oldValue = _↵ | |
4 | _sqlExecutionTabPlacement↵ | 4 | contentsLimitRows;↵ | |
5 | = value;↵ | 5 | _contentsLimitRows = value;↵ | |
6 | getPropertyChangeReporter().firePropertyChange(↵ | 6 | getPropertyChangeReporter().firePropertyChange(↵ | |
7 | IPropertyNames.SQL_EXECUTION_TAB_PLACEMENT,↵ | 7 | IPropertyNames.CONTENTS_LIMIT_ROWS,↵ | |
8 | oldValue, _sqlExecutionTabPlacement);↵ | 8 | oldValue, _contentsLimitRows);↵ | |
9 | } | 9 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
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 | 2 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 1.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (_sqlExecutionTabPlacement != value) |
| 1 | if (_contentsLimitRows != value) | |||||||||||||||||||||
|
| 2 | final boolean oldValue = _contentsLimitRows; | ||||||||||||||||||||||
2 | final int oldValue = _sqlExecutionTabPlacement; |
| | ||||||||||||||||||||||
|
| 3 | _contentsLimitRows = value; | ||||||||||||||||||||||
3 | _sqlExecutionTabPlacement = value; |
| | ||||||||||||||||||||||
4 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.SQL_EXECUTION_TAB_PLACEMENT, oldValue, _sqlExecutionTabPlacement); |
| 4 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.CONTENTS_LIMIT_ROWS, oldValue, _contentsLimitRows); |
Row | Violation |
---|---|
1 | Type int of variable _sqlExecutionTabPlacement does not match with type boolean of variable _contentsLimitRows |
2 | Type int of variable value does not match with type boolean of variable value |
3 | Unmatched statement final boolean oldValue=_contentsLimitRows; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
4 | Unmatched statement final int oldValue=_sqlExecutionTabPlacement; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
5 | Unmatched statement _contentsLimitRows=value; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
6 | Unmatched statement _sqlExecutionTabPlacement=value; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
7 | Type int of variable oldValue does not match with type boolean of variable oldValue |
8 | Type int of variable _sqlExecutionTabPlacement does not match with type boolean of variable _contentsLimitRows |