File path: /jruby-1.4.0/src/org/jruby/runtime/callsite/CachingCallSite.java | File path: /jruby-1.4.0/src/org/jruby/runtime/callsite/SuperCallSite.java | |||
Method name: IRubyObject callIter(ThreadContext, IRubyObject, IRubyObject, IRubyObject, Block)
|
Method name: IRubyObject callIter(ThreadContext, IRubyObject, IRubyObject, IRubyObject[], Block)
|
|||
Number of AST nodes: 2 | Number of AST nodes: 2 | |||
1 | try {↵ | 1 | try {↵ | |
2 | return callBlock(context, caller, self, arg1, block);↵ | 2 | return callBlock(context, caller, self, args, block);↵ | |
3 | } catch (JumpException.BreakJump bj) {↵ | 3 | } catch (JumpException.BreakJump bj) {↵ | |
4 | return handleBreakJump(context, bj);↵ | 4 | return handleBreakJump(context, bj);↵ | |
5 | } catch (JumpException.RetryJump rj) {↵ | 5 | } catch (JumpException.RetryJump rj) {↵ | |
6 | throw retryJumpError(context);↵ | 6 | throw retryJumpError(context);↵ | |
7 | } finally {↵ | 7 | } finally {↵ | |
8 | block.escape();↵ | 8 | block.escape();↵ | |
9 | } | 9 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.4 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 4 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 3.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | try | 1 | try | |||||||||||||||
2 | return callBlock(context, caller, self, arg1, block); |
| 2 | return callBlock(context, caller, self, args, block); |
Row | Violation |
---|---|
1 | Type org.jruby.runtime.builtin.IRubyObject of variable arg1 does not match with type org.jruby.runtime.builtin.IRubyObject[] of variable args |