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 setCommitOnClosingConnection(boolean)
|
Method name: void setSQLExecutionTabPlacement(int)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | final boolean oldValue = _commitOnClosingConnection;↵ | 1 | final int oldValue = _↵ | |
2 | _commitOnClosingConn↵ | 2 | sqlExecutionTabPlacement;↵ | |
3 | ection = data;↵ | 3 | _sqlExecution↵ | |
4 | TabPlacement = value;↵ | |||
4 | getPropertyChangeReporter().firePropertyChange(↵ | 5 | getPropertyChangeReporter().firePropertyChange(↵ | |
5 | IPropertyNames.COMMIT_ON_CLOSING_CONNECTION,↵ | 6 | IPropertyNames.↵ | |
7 | SQL_EXECUTION_TAB_PLACEMENT,↵ | |||
6 | oldValue, _commitOnClosingConnection); | 8 | oldValue, _sqlExecutionTabPlacement); | |
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.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 9 |
Number of mapped statements | 1 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | final boolean oldValue = _commitOnClosingConnection; | | |||||||||||||||||||||||
| 2 | final int oldValue = _sqlExecutionTabPlacement; | |||||||||||||||||||||||
2 | _commitOnClosingConnection = data; |
| | ||||||||||||||||||||||
|
| 3 | _sqlExecutionTabPlacement = value; | ||||||||||||||||||||||
3 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.COMMIT_ON_CLOSING_CONNECTION, oldValue, _commitOnClosingConnection); |
| 4 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.SQL_EXECUTION_TAB_PLACEMENT, oldValue, _sqlExecutionTabPlacement); |
Row | Violation |
---|---|
1 | Unmatched statement _commitOnClosingConnection=data; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
2 | Unmatched statement _sqlExecutionTabPlacement=value; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
3 | Type boolean of variable oldValue does not match with type int of variable oldValue |
4 | Type boolean of variable _commitOnClosingConnection does not match with type int of variable _sqlExecutionTabPlacement |