if (originalValue == null) _originalValue = "<null>"; else _originalValue = originalValue; super.setText(_originalValue); setCaretPosition(0);
if (originalValue == null) _originalValue = "<null>"; else _originalValue = originalValue; super.setText(_originalValue);
Clone fragments detected by clone detection tool
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
		super.setText(_originalValue);
5
		setCaretPosition(0);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are in different classes having the same super class
Number of node comparisons11
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements4
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.0
    Clone typeType 3
    Mapped Statements
    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);
    4
    super.setText(_originalValue);
    Preondition Violations
    Super method call super.setText(_originalValue); cannot be extracted from method
    Super method call super.setText(_originalValue); cannot be extracted from method
    4
    super.setText(_originalValue);
    5
    setCaretPosition(0);
                                                  
    Precondition Violations (3)
    Row Violation
    1Super method call super.setText(_originalValue); cannot be extracted from method
    2Super method call super.setText(_originalValue); cannot be extracted from method
    3The 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