File path: /jruby-1.4.0/src/org/jruby/java/proxies/ConcreteJavaProxy.java | File path: /jruby-1.4.0/src/org/jruby/java/proxies/ConcreteJavaProxy.java | |||
Method name: IRubyObject call(ThreadContext, IRubyObject, RubyModule, String, IRubyObject, IRubyObject, IRubyObject)
|
Method name: IRubyObject call(ThreadContext, IRubyObject, RubyModule, String, IRubyObject, IRubyObject, Block)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | IRubyObject proxy = oldNew.call(context, self, clazz, "new_proxy", arg0, arg1, arg2);↵ | 1 | IRubyObject proxy = oldNew.call(context, self, clazz, "new_proxy", arg0, arg1, block);↵ | |
2 | if (!(proxy.dataGetStruct() instanceof JavaObject)) { // Need to initialize↵ | 2 | if (!(proxy.dataGetStruct() instanceof JavaObject)) { // Need to initialize↵ | |
3 | RuntimeHelpers.invoke(context, proxy, "__jcreate!", arg0, arg1, arg2);↵ | 3 | RuntimeHelpers.invoke(context, proxy, "__jcreate!", arg0, arg1, block);↵ | |
4 | }↵ | 4 | }↵ | |
5 | return proxy; | 5 |
| |
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.2 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 8 |
Number of mapped statements | 4 |
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) | 2.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | IRubyObject proxy = oldNew.call(context, self, clazz, "new_proxy", arg0, arg1, arg2); |
| 1 | IRubyObject proxy = oldNew.call(context, self, clazz, "new_proxy", arg0, arg1, block); | ||||||||||||||
2 | if (!(proxy.dataGetStruct() instanceof JavaObject)) | 2 | if (!(proxy.dataGetStruct() instanceof JavaObject)) | |||||||||||||||
3 | RuntimeHelpers.invoke(context, proxy, "__jcreate!", arg0, arg1, arg2); |
| 3 | RuntimeHelpers.invoke(context, proxy, "__jcreate!", arg0, arg1, block); | ||||||||||||||
4 | return proxy; | 4 | return proxy; |
Row | Violation |
---|---|
1 | Type org.jruby.runtime.builtin.IRubyObject of variable arg2 does not match with type org.jruby.runtime.Block of variable block |
2 | Type org.jruby.runtime.builtin.IRubyObject of variable arg2 does not match with type org.jruby.runtime.Block of variable block |