StripLineComments newFilter = new StripLineComments(rdr); newFilter.setComments(getComments()); newFilter.setInitialized(true); return newFilter;
ExpandProperties newFilter = new ExpandProperties(rdr); newFilter.setProject(getProject()); return newFilter;
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/filters/StripLineComments.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/filters/ExpandProperties.java
Method name: Reader chain(Reader) Method name: Reader chain(Reader)
Number of AST nodes: 4 Number of AST nodes: 3
1
StripLineComments newFilter = new StripLineComments(rdr);
1
ExpandProperties newFilter = new ExpandProperties(rdr);
2
        newFilter.setComments(getComments());
2
        newFilter.set
3
        newFilter.setInitialized(true);
3
Project(getProject());
4
        return newFilter;
4
        return newFilter;
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 comparisons10
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    StripLineComments newFilter = new StripLineComments(rdr);
    1
    StripLineComments newFilter = new StripLineComments(rdr);
    1
    ExpandProperties newFilter = new ExpandProperties(rdr);
    Differences
    Expression1Expression2Difference
    org.apache.tools.ant.filters.StripLineCommentsorg.apache.tools.ant.filters.ExpandPropertiesSUBCLASS_TYPE_MISMATCH
    org.apache.tools.ant.filters.StripLineCommentsorg.apache.tools.ant.filters.ExpandPropertiesSUBCLASS_TYPE_MISMATCH
    org.apache.tools.ant.filters.StripLineCommentsorg.apache.tools.ant.filters.ExpandPropertiesSUBCLASS_TYPE_MISMATCH
    1
    ExpandProperties newFilter = new ExpandProperties(rdr);
                                                                                
    2
    newFilter.setProject(getProject());
    2
    newFilter.setComments(getComments());
                                                                                    
    3
    newFilter.setInitialized(true);
                                                                        
    4
    return newFilter;
    4
    return newFilter;
    3
    return newFilter;
    Differences
    Expression1Expression2Difference
    org.apache.tools.ant.filters.StripLineCommentsorg.apache.tools.ant.filters.ExpandPropertiesSUBCLASS_TYPE_MISMATCH
    3
    return newFilter;
    Precondition Violations (1)
    Row Violation
    1Clone fragment #1 returns variable newFilter with type org.apache.tools.ant.filters.StripLineComments , while Clone fragment #2 returns variable newFilter with type org.apache.tools.ant.filters.ExpandProperties