super(position); assert bodyNode != null : "bodyNode is not null"; this.bodyNode = bodyNode;
super(position); assert valueNode != null : "valueNode is not null"; this.valueNode = valueNode;
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/ast/BeginNode.java File path: /jruby-1.4.0/src/org/jruby/ast/BreakNode.java
Method name: void BeginNode(ISourcePosition, Node) Method name: void BreakNode(ISourcePosition, Node)
Number of AST nodes: 3 Number of AST nodes: 3
1
super(position);
1
super(position);
2
        
2
        
3
        assert bodyNode != null : "bodyNode is not null";
3
        assert valueNode != null : "valueNode is not null";
4
        
4
        
5
        this.bodyNode = bodyNode;
5
        this.valueNode = valueNode;
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.0
Clones locationClones are in different classes having the same super class
Number of node comparisons5
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    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.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super(position);
    1
    super(position);
    2
    assert bodyNode != null : "bodyNode is not null";
    2
    assert bodyNode != null : "bodyNode is not null";
    2
    assert valueNode != null : "valueNode is not null";
    Differences
    Expression1Expression2Difference
    bodyNodevalueNodeVARIABLE_NAME_MISMATCH
    "bodyNode is not null""valueNode is not null"LITERAL_VALUE_MISMATCH
    2
    assert valueNode != null : "valueNode is not null";
    3
    this.bodyNode = bodyNode;
    3
    this.bodyNode = bodyNode;
    3
    this.valueNode = valueNode;
    Differences
    Expression1Expression2Difference
    bodyNodevalueNodeVARIABLE_NAME_MISMATCH
    bodyNodevalueNodeVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.bodyNode is a field being modified, and thus it cannot be parameterized
    Expression this.valueNode is a field being modified, and thus it cannot be parameterized
    3
    this.valueNode = valueNode;
    Precondition Violations (2)
    Row Violation
    1Expression this.bodyNode is a field being modified, and thus it cannot be parameterized
    2Expression this.valueNode is a field being modified, and thus it cannot be parameterized