File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/BaseException.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 |
| |
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 | 9 |
Number of mapped statements | 3 |
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.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (_wrapee != null) | 1 | if (_wrapee != null) | ||||||||||||||||
2 | _wrapee.printStackTrace(wtr); |
| 2 | _wrapee.printStackTrace(s); | |||||||||||||||
else | else | ||||||||||||||||||
3 | super.printStackTrace(wtr); |
| 3 | super.printStackTrace(s); |
Row | Violation |
---|---|
1 | 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 | Super method call super.printStackTrace(wtr); cannot be extracted from method |
3 | Super method call super.printStackTrace(s); cannot be extracted from method |