File path: /jruby-1.4.0/src/org/jruby/java/dispatch/CallableSelector.java | File path: /jruby-1.4.0/src/org/jruby/java/dispatch/CallableSelector.java | |||
Method name: JavaCallable matchingCallableArityN(IRubyObject, Map, JavaCallable[], IRubyObject[], int)
|
Method name: JavaCallable matchingCallableArityOne(IRubyObject, Map, JavaCallable[], IRubyObject)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | int signatureCode = argsHashCode(args);↵ | 1 | int signatureCode = argsHashCode(arg0);↵ | |
2 | JavaCallable method = (JavaCallable)cache.get(signatureCode);↵ | 2 | JavaCallable method = (JavaCallable)cache.get(signatureCode);↵ | |
3 | if (method == null) {↵ | 3 | if (method == null) {↵ | |
4 | method = (JavaCallable)findMatchingCallableForArgs(recv, cache, signatureCode, methods, args);↵ | 4 | method = (JavaCallable)findMatchingCallableForArgs(recv, cache, signatureCode, methods, arg0);↵ | |
5 | }↵ | 5 | }↵ | |
6 | return method; | 6 |
| |
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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 13 |
Number of mapped statements | 5 |
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.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | int signatureCode = argsHashCode(args); |
| 1 | int signatureCode = argsHashCode(arg0); | ||||||||||||||
2 | JavaCallable method = (JavaCallable)cache.get(signatureCode); | 2 | JavaCallable method = (JavaCallable)cache.get(signatureCode); | |||||||||||||||
3 | if (method == null) | 3 | if (method == null) | |||||||||||||||
4 | method = (JavaCallable)findMatchingCallableForArgs(recv, cache, signatureCode, methods, args); |
| 4 | method = (JavaCallable)findMatchingCallableForArgs(recv, cache, signatureCode, methods, arg0); | ||||||||||||||
5 | return method; | 5 | return method; |
Row | Violation |
---|---|
1 | Type org.jruby.runtime.builtin.IRubyObject[] of variable args does not match with type org.jruby.runtime.builtin.IRubyObject of variable arg0 |
2 | Type org.jruby.runtime.builtin.IRubyObject[] of variable args does not match with type org.jruby.runtime.builtin.IRubyObject of variable arg0 |