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 setLiteralStyle(SyntaxStyle)
|
Method name: void setErrorStyle(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 (_literalStyle != data)↵ | 5 | if (_errorStyle != data)↵ | |
6 | {↵ | 6 | {↵ | |
7 | final SyntaxStyle oldValue = _literalStyle;↵ | 7 | final SyntaxStyle oldValue = _errorStyle;↵ | |
8 | _literalStyle = data;↵ | 8 | _errorStyle = data;↵ | |
9 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.LITERAL_STYLE,↵ | 9 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.ERROR_STYLE,↵ | |
10 | oldValue, _literalStyle);↵ | 10 | oldValue, _errorStyle);↵ | |
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.6 |
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 (_literalStyle != data) |
| 3 | if (_errorStyle != data) | |||||||||||||
4 | final SyntaxStyle oldValue = _literalStyle; |
| 4 | final SyntaxStyle oldValue = _errorStyle; | |||||||||||||
5 | _literalStyle = data; |
| 5 | _errorStyle = data; | |||||||||||||
6 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.LITERAL_STYLE, oldValue, _literalStyle); |
| 6 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.ERROR_STYLE, oldValue, _errorStyle); |
Row | Violation |
---|