super.stop(); try { getErr().close(); getOut().close(); } catch (final IOException e) { // plain impossible throw new BuildException(e); }
super.stop(); try { getErr().close(); getOut().close(); } catch (IOException e) { // plain impossible throw new BuildException(e); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/cvslib/RedirectingStreamHandler.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/LogStreamHandler.java
Method name: void stop() Method name: void stop()
Number of AST nodes: 4 Number of AST nodes: 4
1
super.stop();
1
super.stop();
2
        try {
2
        try {
3
            getErr().close();
3
            getErr().close();
4
            getOut().close();
4
            getOut().close();
5
        } catch (final IOException e) {
5
        } catch (IOException e) {
6
            // plain impossible
6
            // plain impossible
7
            throw new BuildException(e);
7
            throw new BuildException(e);
8
        }
8
        }
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 having the same super class
Number of node comparisons2
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment3
    Number of unmapped statements in the second code fragment3
    Time elapsed for statement mapping (ms)1.4
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    super.stop();
    1
    super.stop();
    1
    super.stop();
    Preondition Violations
    Super method call super.stop(); cannot be extracted from method
    Super method call super.stop(); cannot be extracted from method
    1
    super.stop();
                
    2
    try
                                            
    3
    getErr().close();
                                            
    4
    getOut().close();
    2
    try
                
    3
    getErr().close();
                                            
    4
    getOut().close();
                                            
    Precondition Violations (2)
    Row Violation
    1Super method call super.stop(); cannot be extracted from method
    2Super method call super.stop(); cannot be extracted from method