File path: /jruby-1.4.0/src/org/jruby/internal/runtime/methods/ReflectedJavaMethod.java | File path: /jruby-1.4.0/src/org/jruby/internal/runtime/methods/ReflectedCompiledMethod.java | |||
Method name: IRubyObject call(ThreadContext, IRubyObject, RubyModule, String, IRubyObject[], Block)
|
Method name: IRubyObject call(ThreadContext, IRubyObject, RubyModule, String, IRubyObject[], Block)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if (isTrace) {↵ | 1 | if (isTrace) {↵ | |
2 | ↵ | 2 | // XXX Wrong, but will have to do for now↵ | |
3 | runtime.callEventHooks(context, RubyEvent.C_CALL, context.getFile(), context.getLine(), name, getImplementationClass());↵ | 3 | runtime.callEventHooks(context, RubyEvent.CALL, context.getFile(), context.getLine(), name, getImplementationClass());↵ | |
4 | } ↵ | 4 | ↵ | |
5 | ↵ | 5 | }↵ | |
6 | return (IRubyObject)method.invoke(self, (Object[])args); | 6 | return (IRubyObject)method.invoke(null, $scriptObject, context, self, args, block); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 6 |
Number of mapped statements | 3 |
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) | 1.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10 | if (isTrace) | 6 | if (isTrace) | |||||||||||
11 | runtime.callEventHooks(context, RubyEvent.C_CALL, context.getFile(), context.getLine(), name, getImplementationClass()); |
| 7 | runtime.callEventHooks(context, RubyEvent.CALL, context.getFile(), context.getLine(), name, getImplementationClass()); | ||||||||||
12 | return (IRubyObject)method.invoke(self, (Object[])args); |
| 8 | return (IRubyObject)method.invoke(null, $scriptObject, context, self, args, block); |
Row | Violation |
---|