modify(); fastASetCheckString19(context.getRuntime(), key, value); return value;
modify(); fastASetCheckString(context.getRuntime(), key, value); return value;
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/RubyHash.java File path: /jruby-1.4.0/src/org/jruby/RubyHash.java
Method name: IRubyObject op_aset19(ThreadContext, IRubyObject, IRubyObject) Method name: IRubyObject op_aset(ThreadContext, IRubyObject, IRubyObject)
Number of AST nodes: 3 Number of AST nodes: 3
1
modify();
1
modify();
2
        
2
        fastASetCheckString19(context.getRuntime(), key, value);
3
        fastASetCheckString(context.getRuntime(), key, value);
3
        return value;
4
        return value;
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 declared in the same class
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
    modify();
    1
    modify();
    2
    fastASetCheckString19(context.getRuntime(), key, value);
    2
    fastASetCheckString19(context.getRuntime(), key, value);
    2
    fastASetCheckString(context.getRuntime(), key, value);
    Differences
    Expression1Expression2Difference
    fastASetCheckString19fastASetCheckStringMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression fastASetCheckString19(context.getRuntime(),key,value) is a void method call, and thus it cannot be parameterized
    Expression fastASetCheckString(context.getRuntime(),key,value) is a void method call, and thus it cannot be parameterized
    2
    fastASetCheckString(context.getRuntime(), key, value);
    3
    return value;
    3
    return value;
    Precondition Violations (2)
    Row Violation
    1Expression fastASetCheckString19(context.getRuntime(),key,value) is a void method call, and thus it cannot be parameterized
    2Expression fastASetCheckString(context.getRuntime(),key,value) is a void method call, and thus it cannot be parameterized