super(Operation.DEF_CLASS_METH); _module = c; _method = m;
super(Operation.DEF_INST_METH); _class = c; _method = m;
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/compiler/ir/instructions/DEFINE_CLASS_METHOD_Instr.java File path: /jruby-1.4.0/src/org/jruby/compiler/ir/instructions/DEFINE_INSTANCE_METHOD_Instr.java
Method name: void DEFINE_CLASS_METHOD_Instr(IR_Module, IR_Method) Method name: void DEFINE_INSTANCE_METHOD_Instr(IR_Class, IR_Method)
Number of AST nodes: 3 Number of AST nodes: 3
1
super(Operation.DEF_CLASS_METH);
1
super(Operation.DEF_INST_METH);
2
        _module = c;
2
        _class = c;
3
        _method = m;
3
        _method = m;
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 comparisons4
  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(Operation.DEF_CLASS_METH);
    1
    super(Operation.DEF_CLASS_METH);
    1
    super(Operation.DEF_INST_METH);
    Differences
    Expression1Expression2Difference
    DEF_CLASS_METHDEF_INST_METHVARIABLE_NAME_MISMATCH
    1
    super(Operation.DEF_INST_METH);
    2
    _module = c;
    2
    _module = c;
    2
    _class = c;
    Differences
    Expression1Expression2Difference
    _module_classVARIABLE_NAME_MISMATCH
    org.jruby.compiler.ir.IR_Moduleorg.jruby.compiler.ir.IR_ClassSUBCLASS_TYPE_MISMATCH
    org.jruby.compiler.ir.IR_Moduleorg.jruby.compiler.ir.IR_ClassSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression _module is a field being modified, and thus it cannot be parameterized
    Expression _class is a field being modified, and thus it cannot be parameterized
    2
    _class = c;
    3
    _method = m;
    3
    _method = m;
    Precondition Violations (2)
    Row Violation
    1Expression _module is a field being modified, and thus it cannot be parameterized
    2Expression _class is a field being modified, and thus it cannot be parameterized