File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/properties/SessionProperties.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/preferences/SquirrelPreferences.java | |||
Method name: void setCommitOnClosingConnection(boolean)
|
Method name: void setShowSessionStartupTimeHint(boolean)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | final boolean oldValue = _commitOnClosingConnection;↵ | 1 | final boolean oldValue = _↵ | |
2 | _commitOnClosingConnection↵ | 2 | showSessionStartupTimeHint;↵ | |
3 | = data;↵ | 3 | _showSessionStartupTimeHint = data;↵ | |
4 | getPropertyChangeReporter().firePropertyChange(↵ | 4 | getPropertyChangeReporter().firePropertyChange(↵ | |
5 | IPropertyNames.COMMIT_ON_CLOSING_CONNECTION,↵ | 5 | IPropertyNames.SHOW_SESSION_STARTUP_TIME_HINT,↵ | |
6 | oldValue, _commitOnClosingConnection); | 6 | oldValue, _showSessionStartupTimeHint); | |
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 in different classes |
Number of node comparisons | 5 |
Number of mapped statements | 3 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | final boolean oldValue = _commitOnClosingConnection; |
| 2 | final boolean oldValue = _showSessionStartupTimeHint; | |||||||||||||||||
2 | _commitOnClosingConnection = data; |
| 3 | _showSessionStartupTimeHint = data; | |||||||||||||||||
3 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.COMMIT_ON_CLOSING_CONNECTION, oldValue, _commitOnClosingConnection); |
| 4 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_SESSION_STARTUP_TIME_HINT, oldValue, _showSessionStartupTimeHint); |
Row | Violation |
---|---|
1 | Type net.sourceforge.squirrel_sql.client.session.properties.SessionProperties.IPropertyNames does not match with type net.sourceforge.squirrel_sql.client.preferences.SquirrelPreferences.IPropertyNames |