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) | 2.2 |
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 | Super method call super.printStackTrace(w); cannot be extracted from method |
2 | Super method call super.printStackTrace(s); cannot be extracted from method |
3 | Expression w cannot be unified with expression s , because common superclass java.io.Closeable does not declare member(s) public void print(java.lang.String) |
4 | Expression w cannot be unified with expression s , because common superclass type java.io.Closeable cannot be passed as an argument to public void printStackTrace(java.io.PrintWriter) |