if (!additionalPatterns.isEmpty()) { throw noChildrenAllowed(); } if (!selectors.isEmpty()) { throw noChildrenAllowed(); } super.setRefid(r);
if (!additionalPatterns.isEmpty()) { throw noChildrenAllowed(); } if (!selectors.isEmpty()) { throw noChildrenAllowed(); } super.setRefid(r);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/AbstractFileSet.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/resources/Files.java
Method name: void setRefid(Reference) Method name: void setRefid(Reference)
Number of AST nodes: 5 Number of AST nodes: 5
1
if (!additionalPatterns.isEmpty()) {
1
if (!additionalPatterns.isEmpty()) {
2
            throw noChildrenAllowed();
2
            throw noChildrenAllowed();
3
        }
3
        }
4
        if (!selectors.isEmpty()) {
4
        if (!selectors.isEmpty()) {
5
            throw noChildrenAllowed();
5
            throw noChildrenAllowed();
6
        }
6
        }
7
        super.setRefid(r);
7
        super.setRefid(r);
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.4
Clones locationClones are in different classes having the same super class
Number of node comparisons14
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)9.2
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    3
    if (!additionalPatterns.isEmpty())
    3
    if (!additionalPatterns.isEmpty())
    4
    throw noChildrenAllowed();
    4
    throw noChildrenAllowed();
    5
    if (!selectors.isEmpty())
    5
    if (!selectors.isEmpty())
    6
    throw noChildrenAllowed();
    6
    throw noChildrenAllowed();
    7
    super.setRefid(r);
    7
    super.setRefid(r);
    7
    super.setRefid(r);
    Preondition Violations
    Super method call super.setRefid(r); cannot be extracted from method
    Super method call super.setRefid(r); cannot be extracted from method
    7
    super.setRefid(r);
    Precondition Violations (2)
    Row Violation
    1Super method call super.setRefid(r); cannot be extracted from method
    2Super method call super.setRefid(r); cannot be extracted from method