File path: /jruby-1.4.0/src/org/jruby/javasupport/JavaMethod.java | File path: /jruby-1.4.0/src/org/jruby/javasupport/JavaMethod.java | |||
Method name: IRubyObject tryProxyInvocation(Object, Object, Object)
|
Method name: IRubyObject tryProxyInvocation(Object)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | JavaProxyClass jpc = ((InternalJavaProxy) javaInvokee).___getProxyClass();↵ | 1 | JavaProxyClass jpc = ((InternalJavaProxy) javaInvokee).___getProxyClass();↵ | |
2 | JavaProxyMethod jpm;↵ | 2 | JavaProxyMethod jpm;↵ | |
3 | if ((jpm = jpc.getMethod(method.getName(), parameterTypes)) != null && jpm.hasSuperImplementation()) {↵ | 3 | if ((jpm = jpc.getMethod(method.getName(), parameterTypes)) != null && jpm.hasSuperImplementation()) {↵ | |
4 | return invokeDirectSuperWithExceptionHandling(jpm.getSuperMethod(), javaInvokee, arg0, arg1);↵ | 4 | return invokeDirectSuperWithExceptionHandling(jpm.getSuperMethod(), javaInvokee);↵ | |
5 | } else {↵ | 5 | } else {↵ | |
6 | return invokeDirectWithExceptionHandling(method, javaInvokee, arg0, arg1);↵ | 6 | return invokeDirectWithExceptionHandling(method, javaInvokee);↵ | |
7 | } | 7 |
| |
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.5 |
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.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | JavaProxyClass jpc = ((InternalJavaProxy)javaInvokee).___getProxyClass(); | 1 | JavaProxyClass jpc = ((InternalJavaProxy)javaInvokee).___getProxyClass(); | |||||||||||||
2 | JavaProxyMethod jpm; | 2 | JavaProxyMethod jpm; | |||||||||||||
3 | if ((jpm = jpc.getMethod(method.getName(), parameterTypes)) != null && jpm.hasSuperImplementation()) | 3 | if ((jpm = jpc.getMethod(method.getName(), parameterTypes)) != null && jpm.hasSuperImplementation()) | |||||||||||||
4 | return invokeDirectSuperWithExceptionHandling(jpm.getSuperMethod(), javaInvokee, arg0, arg1); |
| 4 | return invokeDirectSuperWithExceptionHandling(jpm.getSuperMethod(), javaInvokee); | ||||||||||||
else | else | |||||||||||||||
5 | return invokeDirectWithExceptionHandling(method, javaInvokee, arg0, arg1); |
| 5 | return invokeDirectWithExceptionHandling(method, javaInvokee); |
Row | Violation |
---|---|
1 | Expression invokeDirectSuperWithExceptionHandling(jpm.getSuperMethod(),javaInvokee,arg0,arg1) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression invokeDirectSuperWithExceptionHandling(jpm.getSuperMethod(),javaInvokee) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression invokeDirectWithExceptionHandling(method,javaInvokee,arg0,arg1) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression invokeDirectWithExceptionHandling(method,javaInvokee) cannot be parameterized, because it has dependencies to/from statements that will be extracted |