IRubyObject[] args = new IRubyObject[] {arg0}; args = prepareArgumentsForCall(context, args, type); return yield(context, RubyArray.newArrayNoCopy(context.getRuntime(), args), null, null, true, binding, type);
IRubyObject[] args = IRubyObject.NULL_ARRAY; args = prepareArgumentsForCall(context, args, type); return yield(context, RubyArray.newArrayNoCopy(context.getRuntime(), args), null, null, true, binding, type);
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/runtime/BlockBody.java File path: /jruby-1.4.0/src/org/jruby/runtime/BlockBody.java
Method name: IRubyObject call(ThreadContext, IRubyObject, Binding, Block.Type) Method name: IRubyObject call(ThreadContext, Binding, Block.Type)
Number of AST nodes: 3 Number of AST nodes: 3
1
IRubyObject[] args = new IRubyObject[] {arg0};
1
IRubyObject[] args = IRubyObject.NULL_ARRAY;
2
        args = prepareArgumentsForCall(context, args, type);
2
        args = prepareArgumentsForCall(context, args, type);
3
        return yield(context, RubyArray.newArrayNoCopy(context.getRuntime(), args), null, null, true, binding, type);
3
        return yield(context, RubyArray.newArrayNoCopy(context.getRuntime(), args), null, null, true, binding, type);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
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. {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
    IRubyObject[] args = new IRubyObject[] {arg0};
    1
    IRubyObject[] args = new IRubyObject[] {arg0};
    1
    IRubyObject[] args = IRubyObject.NULL_ARRAY;
    Differences
    Expression1Expression2Difference
    new IRubyObject[]{arg0}IRubyObject.NULL_ARRAYTYPE_COMPATIBLE_REPLACEMENT
    1
    IRubyObject[] args = IRubyObject.NULL_ARRAY;
    2
    args = prepareArgumentsForCall(context, args, type);
    2
    args = prepareArgumentsForCall(context, args, type);
    3
    return yield(context, RubyArray.newArrayNoCopy(context.getRuntime(), args), null, null, true, binding, type);
    3
    return yield(context, RubyArray.newArrayNoCopy(context.getRuntime(), args), null, null, true, binding, type);
    Precondition Violations (0)
    Row Violation