System.err.println("is considered to be dead code by the Ant "
+ "developers and is unmaintained.");
System.err.println("Don\'t use it!");
this.task = task;
this.emacsMode = emacsMode;
System.err.println("is considered to be dead code by the Ant "
+ "developers and is unmaintained.");
System.err.println("Don\'t use it!");
this.task = task;
this.msgOutputLevel = msgOutputLevel;
Clone fragments detected by clone detection tool
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 |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 11 |
-
{Refactorable}
Mapping Summary
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 |
Mapped Statements
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; | | | |
Precondition Violations (0)
Row |
Violation |