if (_name != data) {
final String oldValue = _name;
_name = data;
getPropertyChangeNotifier().firePropertyChange(IPropertyNames.NAME, oldValue, _name);
}
final SyntaxStyle oldValue = _separatorStyle;
_separatorStyle = data;
getPropertyChangeReporter().firePropertyChange(IPropertyNames.SEPARATOR_STYLE,
oldValue, _separatorStyle);
Clone fragments detected by clone detection tool
File path: /sql12/plugins/favs/src/net/sourceforge/squirrel_sql/plugins/favs/Folder.java
|
|
File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/SyntaxPreferences.java
|
Method name: void setName(String)
|
|
Method name: void setSeparatorStyle(SyntaxStyle)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 3
|
|
1 | if (_name != data) {↵ | | |
|
2 | final String oldValue = _name;↵ | | |
|
3 | _nam↵ | | 1 | final SyntaxStyle oldValue = _separatorStyle;↵
|
4 | e = data;↵ | | 2 | _separatorStyle = data;↵
|
5 | getPropertyChangeNotifier().firePropertyChange(IPropertyNames.NAME, oldValue, _name);↵ | | 3 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.↵
|
6 | } | | 4 | SEPARATOR_STYLE,↵
|
| | | 5 | oldValue, _separatorStyle);
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 9 |