if ((p = getProject().getProperty("ant.netrexxc.suppressExceptionNotSignalled")) != null) { this.suppressExceptionNotSignalled = Project.toBoolean(p); }
if ((p = getProject().getProperty("ant.netrexxc.compact")) != null) { this.compact = 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.suppressExceptionNotSignalled")) != null) {
1
if ((p = getProject().getProperty("ant.netrexxc.compact")) != null) {
2
            this.suppressExceptionNotSignalled = Project.toBoolean(p);
2
            this.compact = 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.1
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    60
    if ((p = getProject().getProperty("ant.netrexxc.suppressExceptionNotSignalled")) != null)
    60
    if ((p = getProject().getProperty("ant.netrexxc.suppressExceptionNotSignalled")) != null)
    6
    if ((p = getProject().getProperty("ant.netrexxc.compact")) != null)
    Differences
    Expression1Expression2Difference
    "ant.netrexxc.suppressExceptionNotSignalled""ant.netrexxc.compact"LITERAL_VALUE_MISMATCH
    6
    if ((p = getProject().getProperty("ant.netrexxc.compact")) != null)
    61
    this.suppressExceptionNotSignalled = Project.toBoolean(p);
    61
    this.suppressExceptionNotSignalled = Project.toBoolean(p);
    7
    this.compact = Project.toBoolean(p);
    Differences
    Expression1Expression2Difference
    suppressExceptionNotSignalledcompactVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.suppressExceptionNotSignalled is a field being modified, and thus it cannot be parameterized
    Expression this.compact is a field being modified, and thus it cannot be parameterized
    7
    this.compact = Project.toBoolean(p);
    Precondition Violations (2)
    Row Violation
    1Expression this.suppressExceptionNotSignalled is a field being modified, and thus it cannot be parameterized
    2Expression this.compact is a field being modified, and thus it cannot be parameterized