File path: /jruby-1.4.0/src/org/jruby/runtime/callsite/SuperCallSite.java | File path: /jruby-1.4.0/src/org/jruby/runtime/callsite/SuperCallSite.java | |||
Method name: IRubyObject cacheAndCall(IRubyObject, RubyClass, Block, ThreadContext, IRubyObject, String, IRubyObject)
|
Method name: IRubyObject cacheAndCall(IRubyObject, RubyClass, ThreadContext, IRubyObject, String, IRubyObject, IRubyObject)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | CacheEntry entry = selfType != null ? selfType.searchWithCache(name) : CacheEntry.NULL_CACHE;↵ | 1 | CacheEntry entry = selfType != null ? selfType.searchWithCache(name) : CacheEntry.NULL_CACHE;↵ | |
2 | DynamicMethod method = entry.method;↵ | 2 | DynamicMethod method = entry.method;↵ | |
3 | if (methodMissing(method, caller)) {↵ | 3 | if (methodMissing(method, caller)) {↵ | |
4 | return callMethodMissing(context, self, name, method, arg, block);↵ | 4 | return callMethodMissing(context, self, name, method, arg1, arg2);↵ | |
5 | }↵ | 5 | }↵ | |
6 | lastName = name;↵ | 6 | lastName = name;↵ | |
7 | cache = entry;↵ | 7 | cache = entry;↵ | |
8 | return method.call(context, self, selfType, name, arg, block); | 8 | return method.call(context, self, selfType, name, arg1, arg2); | |
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 | 16 |
Number of mapped statements | 7 |
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.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | CacheEntry entry = selfType != null ? selfType.searchWithCache(name) : CacheEntry.NULL_CACHE; | 1 | CacheEntry entry = selfType != null ? selfType.searchWithCache(name) : CacheEntry.NULL_CACHE; | ||||||||||||||||||
2 | DynamicMethod method = entry.method; | 2 | DynamicMethod method = entry.method; | ||||||||||||||||||
3 | if (methodMissing(method, caller)) | 3 | if (methodMissing(method, caller)) | ||||||||||||||||||
4 | return callMethodMissing(context, self, name, method, arg, block); |
| 4 | return callMethodMissing(context, self, name, method, arg1, arg2); | |||||||||||||||||
5 | lastName = name; | 5 | lastName = name; | ||||||||||||||||||
6 | cache = entry; | 6 | cache = entry; | ||||||||||||||||||
7 | return method.call(context, self, selfType, name, arg, block); |
| 7 | return method.call(context, self, selfType, name, arg1, arg2); |
Row | Violation |
---|---|
1 | Type org.jruby.runtime.Block of variable block does not match with type org.jruby.runtime.builtin.IRubyObject of variable arg2 |
2 | Type org.jruby.runtime.Block of variable block does not match with type org.jruby.runtime.builtin.IRubyObject of variable arg2 |