if ((p = getProject().getProperty("ant.netrexxc.suppressMethodArgumentNotUsed")) != null) { this.suppressMethodArgumentNotUsed = Project.toBoolean(p); }
if ((p = getProject().getProperty("ant.netrexxc.replace")) != null) { this.replace = 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.suppressMethodArgumentNotUsed")) != null) {
1
if ((p = getProject().getProperty("ant.netrexxc.replace")) != null) {
2
            this.suppressMethodArgumentNotUsed = Project.toBoolean(p);
2
            this.replace = 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.3
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)2.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    54
    if ((p = getProject().getProperty("ant.netrexxc.suppressMethodArgumentNotUsed")) != null)
    54
    if ((p = getProject().getProperty("ant.netrexxc.suppressMethodArgumentNotUsed")) != null)
    26
    if ((p = getProject().getProperty("ant.netrexxc.replace")) != null)
    Differences
    Expression1Expression2Difference
    "ant.netrexxc.suppressMethodArgumentNotUsed""ant.netrexxc.replace"LITERAL_VALUE_MISMATCH
    26
    if ((p = getProject().getProperty("ant.netrexxc.replace")) != null)
    55
    this.suppressMethodArgumentNotUsed = Project.toBoolean(p);
    55
    this.suppressMethodArgumentNotUsed = Project.toBoolean(p);
    27
    this.replace = Project.toBoolean(p);
    Differences
    Expression1Expression2Difference
    suppressMethodArgumentNotUsedreplaceVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.suppressMethodArgumentNotUsed is a field being modified, and thus it cannot be parameterized
    Expression this.replace is a field being modified, and thus it cannot be parameterized
    27
    this.replace = Project.toBoolean(p);
    Precondition Violations (2)
    Row Violation
    1Expression this.suppressMethodArgumentNotUsed is a field being modified, and thus it cannot be parameterized
    2Expression this.replace is a field being modified, and thus it cannot be parameterized