this.kcode = kcode; this.encodingName = encodingName; this.code = code;
this.name = name; this.fileName = fileName; this.line = line;
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/util/KCode.java File path: /jruby-1.4.0/src/org/jruby/runtime/Frame.java
Method name: void KCode(String, String, int) Method name: void updateFrame(String, String, int)
Number of AST nodes: 3 Number of AST nodes: 3
1
this.kcode = kcode;
1
this.name = name;
2
        this.encodingName = encodingName;
2
        this.fileName = fileName;
3
        this.code = code;
3
        this.line = line;
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 comparisons6
  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.kcode = kcode;
    1
    this.kcode = kcode;
    1
    this.name = name;
    Differences
    Expression1Expression2Difference
    kcodenameVARIABLE_NAME_MISMATCH
    kcodenameVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.kcode 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
    1
    this.name = name;
    2
    this.encodingName = encodingName;
    2
    this.encodingName = encodingName;
    2
    this.fileName = fileName;
    Differences
    Expression1Expression2Difference
    encodingNamefileNameVARIABLE_NAME_MISMATCH
    encodingNamefileNameVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.encodingName is a field being modified, and thus it cannot be parameterized
    Expression this.fileName is a field being modified, and thus it cannot be parameterized
    2
    this.fileName = fileName;
    3
    this.code = code;
    3
    this.code = code;
    3
    this.line = line;
    Differences
    Expression1Expression2Difference
    codelineVARIABLE_NAME_MISMATCH
    codelineVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.code is a field being modified, and thus it cannot be parameterized
    Expression this.line is a field being modified, and thus it cannot be parameterized
    3
    this.line = line;
    Precondition Violations (6)
    Row Violation
    1Expression this.kcode 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.encodingName is a field being modified, and thus it cannot be parameterized
    4Expression this.fileName is a field being modified, and thus it cannot be parameterized
    5Expression this.code is a field being modified, and thus it cannot be parameterized
    6Expression this.line is a field being modified, and thus it cannot be parameterized