this.key = key; this.value = value; this.type = type;
this.value = value; this.name = name; this.literal = literal;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/importer/rose/parser/RoseNode.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/change/ChangeKind.java
Method name: void RoseNode(String, String, int) Method name: void ChangeKind(int, String, String)
Number of AST nodes: 3 Number of AST nodes: 3
1
this.key = key;
1
this.value = value;
2
    this.value = value;
2
    this.name = name;
3
    this.type = type;
3
    this.literal = literal;
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
Number of node comparisons9
  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
    this.key = key;
    1
    this.key = key;
    3
    this.literal = literal;
    Differences
    Expression1Expression2Difference
    keyliteralVARIABLE_NAME_MISMATCH
    keyliteralVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.key is a field being modified, and thus it cannot be parameterized
    Expression this.literal is a field being modified, and thus it cannot be parameterized
    3
    this.literal = literal;
    2
    this.value = value;
    2
    this.value = value;
    2
    this.name = name;
    Differences
    Expression1Expression2Difference
    valuenameVARIABLE_NAME_MISMATCH
    valuenameVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.value is a field being modified, and thus it cannot be parameterized
    Expression this.name is a field being modified, and thus it cannot be parameterized
    2
    this.name = name;
    3
    this.type = type;
    3
    this.type = type;
    1
    this.value = value;
    Differences
    Expression1Expression2Difference
    typevalueVARIABLE_NAME_MISMATCH
    typevalueVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.type is a field being modified, and thus it cannot be parameterized
    Expression this.value is a field being modified, and thus it cannot be parameterized
    1
    this.value = value;
    Precondition Violations (6)
    Row Violation
    1Expression this.key is a field being modified, and thus it cannot be parameterized
    2Expression this.literal is a field being modified, and thus it cannot be parameterized
    3Expression this.value is a field being modified, and thus it cannot be parameterized
    4Expression this.name is a field being modified, and thus it cannot be parameterized
    5Expression this.type is a field being modified, and thus it cannot be parameterized
    6Expression this.value is a field being modified, and thus it cannot be parameterized