super(position); assert regexpNode != null : "regexpNode is not null"; this.regexpNode = regexpNode;
super(position); assert node != null : "node is not null"; this.node = node;
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/ast/MatchNode.java File path: /jruby-1.4.0/src/org/jruby/ast/SplatNode.java
Method name: void MatchNode(ISourcePosition, Node) Method name: void SplatNode(ISourcePosition, Node)
Number of AST nodes: 3 Number of AST nodes: 3
1
super(position);
1
super(position);
2
        
2
        
3
        assert regexpNode != null : "regexpNode is not null";
3
        assert node != null : "node is not null";
4
        
4
        
5
        this.regexpNode = regexpNode;
5
        this.node = node;
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 regexpNode != null : "regexpNode is not null";
    2
    assert regexpNode != null : "regexpNode is not null";
    2
    assert node != null : "node is not null";
    Differences
    Expression1Expression2Difference
    regexpNodenodeVARIABLE_NAME_MISMATCH
    "regexpNode is not null""node is not null"LITERAL_VALUE_MISMATCH
    2
    assert node != null : "node is not null";
    3
    this.regexpNode = regexpNode;
    3
    this.regexpNode = regexpNode;
    3
    this.node = node;
    Differences
    Expression1Expression2Difference
    regexpNodenodeVARIABLE_NAME_MISMATCH
    regexpNodenodeVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.regexpNode is a field being modified, and thus it cannot be parameterized
    Expression this.node is a field being modified, and thus it cannot be parameterized
    3
    this.node = node;
    Precondition Violations (2)
    Row Violation
    1Expression this.regexpNode is a field being modified, and thus it cannot be parameterized
    2Expression this.node is a field being modified, and thus it cannot be parameterized