File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/JikesOutputParser.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/TaskOutputStream.java | |||
Method name: void JikesOutputParser(Task, boolean)
|
Method name: void TaskOutputStream(Task, int)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | System.err.println("is considered to be dead code by the Ant "↵ | 1 | System.err.println("is considered to be dead code by the Ant "↵ | |
2 | + "developers and is unmaintained.");↵ | 2 | + "developers and is unmaintained.");↵ | |
3 | System.err.println("Don\'t use it!");↵ | 3 | System.err.println("Don\'t use it!");↵ | |
4 | this.task = task;↵ | 4 | this.task = task;↵ | |
5 | this.emacsMode = emacsMode; | 5 | this.msgOutputLevel = msgOutputLevel; | |
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 11 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||
---|---|---|---|---|---|---|---|
3 | System.err.println("is considered to be dead code by the Ant " + "developers and is unmaintained."); | 2 | System.err.println("is considered to be dead code by the Ant " + "developers and is unmaintained."); | ||||
4 | System.err.println("Don\'t use it!"); | 3 | System.err.println("Don\'t use it!"); | ||||
5 | this.task = task; | 4 | this.task = task; | ||||
|
| 5 | this.msgOutputLevel = msgOutputLevel; | ||||
6 | this.emacsMode = emacsMode; |
| |
Row | Violation |
---|---|
1 | Unmatched statement this.msgOutputLevel=msgOutputLevel; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
2 | Unmatched statement this.emacsMode=emacsMode; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
3 | The refactoring of the clones is infeasible, because classes org.apache.tools.ant.taskdefs.JikesOutputParser and org.apache.tools.ant.taskdefs.TaskOutputStream do not have a common superclass |