File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/spellcheck/cswilly/SpellException.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/spellcheck/cswilly/SpellException.java | |||
Method name: void printStackTrace(PrintWriter)
|
Method name: void printStackTrace(PrintStream)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | super.printStackTrace(w);↵ | 1 | super.printStackTrace(s);↵ | |
2 | if (rootCause != null) {↵ | 2 | if (rootCause != null) {↵ | |
3 | w.print("Root cause: ");↵ | 3 | s.print("Root cause: ");↵ | |
4 | rootCause.printStackTrace(w);↵ | 4 | rootCause.printStackTrace(s);↵ | |
5 | } | 5 |
| |
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 | 10 |
Number of mapped statements | 4 |
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) | 0.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super.printStackTrace(w); |
| 1 | super.printStackTrace(s); | ||||||||||||||
2 | if (rootCause != null) | 2 | if (rootCause != null) | |||||||||||||||
3 | w.print("Root cause: "); |
| 3 | s.print("Root cause: "); | ||||||||||||||
4 | rootCause.printStackTrace(w); |
| 4 | rootCause.printStackTrace(s); |
Row | Violation |
---|---|
1 | Type java.io.PrintWriter of variable w does not match with type java.io.PrintStream of variable s |
2 | Type java.io.PrintWriter of variable w does not match with type java.io.PrintStream of variable s |
3 | Type java.io.PrintWriter of variable w does not match with type java.io.PrintStream of variable s |