File path: /jruby-1.4.0/src/org/jruby/compiler/util/HandleFactory.java | File path: /jruby-1.4.0/src/org/jruby/internal/runtime/methods/InvocationMethodFactory.java | |||
Method name: Handle createHandle(JRubyClassLoader, Method, boolean)
|
Method name: DynamicMethod getCompiledMethod(RubyModule, String, Arity, Visibility, StaticScope, Object, CallConfiguration)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | for (int i = 0; i < paramTypes.length; i++) {↵ | 1 | for (int i = 0; i < ↵ | |
2 | scope.getRequiredArgs(); i++) {↵ | |||
2 | m.aload(2); // args array↵ | 3 | mv.aload(5);↵ | |
3 | m.ldc(i);↵ | 4 | mv.ldc(i);↵ | |
4 | m.aaload(); // i'th argument↵ | 5 | ↵ | |
6 | mv.arrayload();↵ | |||
5 | } | 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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 16 |
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) | 1.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
79 | for (int i = 0; i < paramTypes.length; i++) |
| 33 | for (int i = 0; i < scope.getRequiredArgs(); i++) | |||||||||||||||
80 | m.aload(2); |
| 34 | mv.aload(5); | |||||||||||||||
81 | m.ldc(i); |
| 35 | mv.ldc(i); | |||||||||||||||
82 | m.aaload(); |
| 36 | mv.arrayload(); |
Row | Violation |
---|---|
1 | Expression m.aaload() is a void method call, and thus it cannot be parameterized |
2 | Expression mv.arrayload() is a void method call, and thus it cannot be parameterized |