File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/SyntaxPreferences.java | File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/SyntaxPreferences.java | |||
Method name: void setOperatorStyle(SyntaxStyle)
|
Method name: void setSeparatorStyle(SyntaxStyle)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (data == null)↵ | 1 | if (data == null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | throw new IllegalArgumentException("SyntaxStyle==null");↵ | 3 | throw new IllegalArgumentException("SyntaxStyle==null");↵ | |
4 | }↵ | 4 | }↵ | |
5 | if (_operatorStyle != data)↵ | 5 | if (_separatorStyle != data)↵ | |
6 | {↵ | 6 | {↵ | |
7 | final SyntaxStyle oldValue = _operatorStyle;↵ | 7 | final SyntaxStyle oldValue = _separatorStyle;↵ | |
8 | _operatorStyle = data;↵ | 8 | _separatorStyle = data;↵ | |
9 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.OPERATOR_STYLE,↵ | 9 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.SEPARATOR_STYLE,↵ | |
10 | oldValue, _operatorStyle);↵ | 10 | oldValue, _separatorStyle);↵ | |
11 | } | 11 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 22 |
Number of mapped statements | 6 |
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) | 1.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (data == null) | 1 | if (data == null) | ||||||||||||||
2 | throw new IllegalArgumentException("SyntaxStyle==null"); | 2 | throw new IllegalArgumentException("SyntaxStyle==null"); | ||||||||||||||
3 | if (_operatorStyle != data) |
| 3 | if (_separatorStyle != data) | |||||||||||||
4 | final SyntaxStyle oldValue = _operatorStyle; |
| 4 | final SyntaxStyle oldValue = _separatorStyle; | |||||||||||||
5 | _operatorStyle = data; |
| 5 | _separatorStyle = data; | |||||||||||||
6 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.OPERATOR_STYLE, oldValue, _operatorStyle); |
| 6 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.SEPARATOR_STYLE, oldValue, _separatorStyle); |
Row | Violation |
---|