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 setTextLimitLineWidth(int)
|
Method name: void setTextLimitLineVisible(boolean)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (_textLimitLineWidth != data)↵ | 1 | if (_textLimitLineVisible != data)↵ | |
2 | {↵ | 2 | {↵ | |
3 | final Integer oldValue = Integer.valueOf(_textLimitLineWidth);↵ | 3 | final Boolean oldValue = Boolean.valueOf(_textLimitLineVisible);↵ | |
4 | _textLimitLineWidth = data;↵ | 4 | _textLimitLineVisible = data;↵ | |
5 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.TEXT_LIMIT_LINE_WIDTH,↵ | 5 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.TEXT_LIMIT_LINE_VISIBLE,↵ | |
6 | oldValue, Integer.valueOf(_textLimitLineWidth));↵ | 6 | oldValue, Boolean.valueOf(_textLimitLineVisible));↵ | |
7 | } | 7 |
| |
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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 16 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 1.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (_textLimitLineWidth != data) |
| 1 | if (_textLimitLineVisible != data) | |||||||||||||||||||||||||||||||
|
| 2 | final Boolean oldValue = Boolean.valueOf(_textLimitLineVisible); | ||||||||||||||||||||||||||||||||
2 | final Integer oldValue = Integer.valueOf(_textLimitLineWidth); |
| | ||||||||||||||||||||||||||||||||
|
| 3 | _textLimitLineVisible = data; | ||||||||||||||||||||||||||||||||
3 | _textLimitLineWidth = data; |
| | ||||||||||||||||||||||||||||||||
4 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.TEXT_LIMIT_LINE_WIDTH, oldValue, Integer.valueOf(_textLimitLineWidth)); |
| 4 | getPropertyChangeReporter().firePropertyChange(IPropertyNames.TEXT_LIMIT_LINE_VISIBLE, oldValue, Boolean.valueOf(_textLimitLineVisible)); |
Row | Violation |
---|---|
1 | Type int of variable _textLimitLineWidth does not match with type boolean of variable _textLimitLineVisible |
2 | Type int of variable data does not match with type boolean of variable data |
3 | Unmatched statement final Boolean oldValue=Boolean.valueOf(_textLimitLineVisible); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
4 | Unmatched statement final Integer oldValue=Integer.valueOf(_textLimitLineWidth); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
5 | Unmatched statement _textLimitLineVisible=data; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
6 | Unmatched statement _textLimitLineWidth=data; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
7 | Type java.lang.Integer of variable oldValue does not match with type java.lang.Boolean of variable oldValue |
8 | Type int of variable _textLimitLineWidth does not match with type boolean of variable _textLimitLineVisible |
9 | Expression Integer.valueOf(_textLimitLineWidth) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression Boolean.valueOf(_textLimitLineVisible) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Type java.lang.Integer of variable Integer.valueOf(_textLimitLineWidth) does not match with type java.lang.Boolean of variable Boolean.valueOf(_textLimitLineVisible) |
12 | Type java.lang.Integer does not match with type java.lang.Boolean |