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 setColumnStyle(SyntaxStyle)
|
Method name: void setReservedWordStyle(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 (_columnStyle != data)↵ | 5 | if (_reservedWordStyle != data)↵ | |
6 | {↵ | 6 | {↵ | |
7 | final SyntaxStyle oldValue = _columnStyle;↵ | 7 | final SyntaxStyle oldValue = _↵ | |
8 | _column↵ | 8 | reservedWordStyle;↵ | |
9 | Style = data;↵ | 9 | _reservedWordStyle = data;↵ | |
10 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.COLUMN_STYLE,↵ | 10 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.RESERVED_WORD_STYLE,↵ | |
11 | oldValue, _columnStyle);↵ | 11 | oldValue, _reservedWordStyle);↵ | |
12 | } | 12 |
| |
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 (_columnStyle != data) |
| 3 | if (_reservedWordStyle != data) | |||||||||||||
4 | final SyntaxStyle oldValue = _columnStyle; |
| 4 | final SyntaxStyle oldValue = _reservedWordStyle; | |||||||||||||
5 | _columnStyle = data; |
| 5 | _reservedWordStyle = data; | |||||||||||||
6 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.COLUMN_STYLE, oldValue, _columnStyle); |
| 6 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.RESERVED_WORD_STYLE, oldValue, _reservedWordStyle); |
Row | Violation |
---|