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;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons11
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 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;
    Preondition Violations
    Unmatched statement this.msgOutputLevel=msgOutputLevel; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    5
    this.msgOutputLevel = msgOutputLevel;
    6
    this.emacsMode = emacsMode;
    6
    this.emacsMode = emacsMode;
    Preondition Violations
    Unmatched statement this.emacsMode=emacsMode; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                            
    Precondition Violations (3)
    Row Violation
    1Unmatched statement this.msgOutputLevel=msgOutputLevel; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Unmatched statement this.emacsMode=emacsMode; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3The 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