this.source = source; this.code = code; this.message = message; this.data = dataAsList(data);
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/common/util/BasicDiagnostic.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/namespace/SpaceType.java
Method name: void BasicDiagnostic(String, int, String, Object[]) Method name: void SpaceType(int, String, String)
Number of AST nodes: 4 Number of AST nodes: 3
1
this.source = source;
1
this.
2
    this.code = code;
3
    this.message = message;
4
    this.data = dataAsList(data)
2
value = value;
3
    this.name = name;
5
;
4
    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 comparisons12
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    this.source = source;
    1
    this.source = source;
    2
    this.name = name;
    Differences
    Expression1Expression2Difference
    sourcenameVARIABLE_NAME_MISMATCH
    sourcenameVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.source 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;
    2
    this.code = code;
    2
    this.code = code;
    1
    this.value = value;
    Differences
    Expression1Expression2Difference
    codevalueVARIABLE_NAME_MISMATCH
    codevalueVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.code 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;
    3
    this.message = message;
    3
    this.message = message;
    3
    this.literal = literal;
    Differences
    Expression1Expression2Difference
    messageliteralVARIABLE_NAME_MISMATCH
    messageliteralVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.message 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;
    4
    this.data = dataAsList(data);
                                                                
    Precondition Violations (6)
    Row Violation
    1Expression this.source is a field being modified, and thus it cannot be parameterized
    2Expression this.name is a field being modified, and thus it cannot be parameterized
    3Expression this.code is a field being modified, and thus it cannot be parameterized
    4Expression this.value is a field being modified, and thus it cannot be parameterized
    5Expression this.message is a field being modified, and thus it cannot be parameterized
    6Expression this.literal is a field being modified, and thus it cannot be parameterized