if (!getURI().equals(other.getURI())) { return false; }
if (!(other.getURI() == null || other.getURI().equals("") || other.getURI().equals(ProjectHelper.ANT_CORE_URI))) { return false; }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/MacroDef.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/MacroDef.java
Method name: boolean sameOrSimilar(Object, boolean) Method name: boolean sameOrSimilar(Object, boolean)
Number of AST nodes: 2 Number of AST nodes: 2
1
if (!getURI().equals(other.getURI(
1
if (!(other.getURI() == null || other.getURI().equals("")
2
))) {
2
                  || other.getURI().equals(ProjectHelper.ANT_CORE_URI))) {
3
                return false;
3
                return false;
4
            }
4
            }
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.2
Clones locationClones are in the same method
Number of node comparisons4
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.3
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    22
    if (!getURI().equals(other.getURI()))
    22
    if (!getURI().equals(other.getURI()))
    20
    if (!(other.getURI() == null || other.getURI().equals("") || other.getURI().equals(ProjectHelper.ANT_CORE_URI)))
    Differences
    Expression1Expression2Difference
    getURI().equals(other.getURI())(other.getURI() == null || other.getURI().equals("") || other.getURI().equals(ProjectHelper.ANT_CORE_URI))TYPE_COMPATIBLE_REPLACEMENT
    20
    if (!(other.getURI() == null || other.getURI().equals("") || other.getURI().equals(ProjectHelper.ANT_CORE_URI)))
    23
    return false;
    23
    return false;
    21
    return false;
    Preondition Violations
    Conditional return false;
    Conditional return false;
    21
    return false;
    Precondition Violations (2)
    Row Violation
    1Conditional return false;
    2Conditional return false;