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 setShowRowCount(boolean)
|
Method name: void setWarnForUnsavedBufferEdits(boolean)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | final boolean oldValue = _showRowCount;↵ | 1 | final boolean oldValue = _warnForUnsavedBufferEdits;↵ | |
2 | _showRowCount = data;↵ | 2 | _warnForUnsavedBufferEdits = data;↵ | |
3 | getPropertyChangeReporter().firePropertyChange(↵ | 3 | getPropertyChangeReporter().firePropertyChange(↵ | |
4 | IPropertyNames.SHOW_ROW_COUNT,↵ | 4 | ↵ | |
5 | oldValue, _showRowCount↵ | 5 | IPropertyNames.WARN_FOR_UNSAVED_BUFFER_EDITS,↵ | |
6 | ); | 6 | oldValue, _warnForUnsavedBufferEdits); | |
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 = _showRowCount; |
| 2 | final boolean oldValue = _warnForUnsavedBufferEdits; | |||||||||||||||||
2 | _showRowCount = data; |
| 3 | _warnForUnsavedBufferEdits = data; | |||||||||||||||||
3 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.SHOW_ROW_COUNT, oldValue, _showRowCount); |
| 4 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.WARN_FOR_UNSAVED_BUFFER_EDITS, oldValue, _warnForUnsavedBufferEdits); |
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 |