File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/RestorableJTextArea.java | File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/RestorableJTextField.java | |||
Method name: void setText(String)
|
Method name: void setText(String)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 4 | |||
1 | if (originalValue == null)↵ | 1 | if (originalValue == null)↵ | |
2 | _originalValue = "<null>";↵ | 2 | _originalValue = "<null>";↵ | |
3 | else _originalValue = originalValue;↵ | 3 | else _originalValue = originalValue;↵ | |
4 | super.setText(_originalValue);↵ | 4 |
| |
5 | setCaretPosition(0); | |||
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 in different classes having the same super class |
Number of node comparisons | 11 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 1.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||
---|---|---|---|---|---|---|---|---|---|---|
1 | if (originalValue == null) | 1 | if (originalValue == null) | |||||||
2 | _originalValue = "<null>"; | 2 | _originalValue = "<null>"; | |||||||
else | else | |||||||||
3 | _originalValue = originalValue; | 3 | _originalValue = originalValue; | |||||||
4 | super.setText(_originalValue); |
| 4 | super.setText(_originalValue); | ||||||
5 | setCaretPosition(0); | |
Row | Violation |
---|---|
1 | Super method call super.setText(_originalValue); cannot be extracted from method |
2 | Super method call super.setText(_originalValue); cannot be extracted from method |
3 | The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.RestorableJTextArea and net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.RestorableJTextField do not have a common superclass |