if (_wrapee != null) { _wrapee.printStackTrace(wtr); } else { super.printStackTrace(wtr); }
if (_wrapee != null) { _wrapee.printStackTrace(s); } else { super.printStackTrace(s); }
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/BaseRuntimeException.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/BaseException.java
Method name: void printStackTrace(PrintWriter) Method name: void printStackTrace(PrintStream)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (_wrapee != null)
1
if (_wrapee != null)
2
		{
2
		{
3
			_wrapee.printStackTrace(wtr);
3
			_wrapee.printStackTrace(s);
4
		}
4
		}
5
		else
5
		else
6
		{
6
		{
7
			super.printStackTrace(wtr);
7
			super.printStackTrace(s);
8
		}
8
		}
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 comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.1
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (_wrapee != null)
    1
    if (_wrapee != null)
    2
    _wrapee.printStackTrace(wtr);
    2
    _wrapee.printStackTrace(wtr);
    2
    _wrapee.printStackTrace(s);
    Differences
    Expression1Expression2Difference
    wtrsVARIABLE_NAME_MISMATCH
    java.io.PrintWriterjava.io.PrintStreamSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression wtr cannot be unified with expression s , because common superclass type java.lang.Appendable cannot be passed as an argument to public void printStackTrace(java.io.PrintWriter)
    2
    _wrapee.printStackTrace(s);
    else
    else
    3
    super.printStackTrace(wtr);
    3
    super.printStackTrace(wtr);
    3
    super.printStackTrace(s);
    Differences
    Expression1Expression2Difference
    wtrsVARIABLE_NAME_MISMATCH
    java.io.PrintWriterjava.io.PrintStreamSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Super method call super.printStackTrace(wtr); cannot be extracted from method
    Super method call super.printStackTrace(s); cannot be extracted from method
    3
    super.printStackTrace(s);
    Precondition Violations (4)
    Row Violation
    1Expression wtr cannot be unified with expression s , because common superclass type java.lang.Appendable cannot be passed as an argument to public void printStackTrace(java.io.PrintWriter)
    2Super method call super.printStackTrace(wtr); cannot be extracted from method
    3Super method call super.printStackTrace(s); cannot be extracted from method
    4The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.fw.util.BaseRuntimeException and net.sourceforge.squirrel_sql.fw.util.BaseException do not have a common superclass