if ((p = getProject().getProperty("ant.netrexxc.suppressVariableNotUsed")) != null) { this.suppressVariableNotUsed = Project.toBoolean(p); }
if ((p = getProject().getProperty("ant.netrexxc.binary")) != null) { this.binary = Project.toBoolean(p); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/NetRexxC.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/NetRexxC.java
Method name: void init() Method name: void init()
Number of AST nodes: 2 Number of AST nodes: 2
1
if ((p = getProject().getProperty("ant.netrexxc.suppressVariableNotUsed")) != null) {
1
if ((p = getProject().getProperty("ant.netrexxc.binary")) != null) {
2
            this.suppressVariableNotUsed = Project.toBoolean(p);
2
            this.binary = Project.toBoolean(p);
3
        }
3
        }
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 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)1.9
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    58
    if ((p = getProject().getProperty("ant.netrexxc.suppressVariableNotUsed")) != null)
    58
    if ((p = getProject().getProperty("ant.netrexxc.suppressVariableNotUsed")) != null)
    2
    if ((p = getProject().getProperty("ant.netrexxc.binary")) != null)
    Differences
    Expression1Expression2Difference
    "ant.netrexxc.suppressVariableNotUsed""ant.netrexxc.binary"LITERAL_VALUE_MISMATCH
    2
    if ((p = getProject().getProperty("ant.netrexxc.binary")) != null)
    59
    this.suppressVariableNotUsed = Project.toBoolean(p);
    59
    this.suppressVariableNotUsed = Project.toBoolean(p);
    3
    this.binary = Project.toBoolean(p);
    Differences
    Expression1Expression2Difference
    suppressVariableNotUsedbinaryVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.suppressVariableNotUsed is a field being modified, and thus it cannot be parameterized
    Expression this.binary is a field being modified, and thus it cannot be parameterized
    3
    this.binary = Project.toBoolean(p);
    Precondition Violations (2)
    Row Violation
    1Expression this.suppressVariableNotUsed is a field being modified, and thus it cannot be parameterized
    2Expression this.binary is a field being modified, and thus it cannot be parameterized