SkinnyMethodAdapter mv = new SkinnyMethodAdapter(cw.visitMethod(ACC_PUBLIC | ACC_SYNTHETIC | ACC_FINAL, "call", BLOCK_CALL_SIG, null, null));
mv.visitCode();
Label line = new Label();
mv.visitLineNumber(0, line);
return mv;
SkinnyMethodAdapter mv = new SkinnyMethodAdapter(cw.visitMethod(ACC_PUBLIC | ACC_SYNTHETIC | ACC_FINAL, "call", BLOCK_CALL_SIG, null, null));
mv.visitCode();
Label line = new Label();
mv.visitLineNumber(0, line);
return mv;
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/internal/runtime/methods/InvocationMethodFactory.java
|
|
File path: /jruby-1.4.0/src/org/jruby/runtime/callback/InvocationCallbackFactory.java
|
Method name: SkinnyMethodAdapter startBlockCall(ClassWriter)
|
|
Method name: SkinnyMethodAdapter startBlockCall(ClassWriter)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 5
|
|
1 | SkinnyMethodAdapter mv = new SkinnyMethodAdapter(cw.visitMethod(ACC_PUBLIC | ACC_SYNTHETIC | ACC_FINAL, "call", BLOCK_CALL_SIG, null, null));↵ | | 1 | SkinnyMethodAdapter mv = new SkinnyMethodAdapter(cw.visitMethod(ACC_PUBLIC | ACC_SYNTHETIC | ACC_FINAL, "call", BLOCK_CALL_SIG, null, null));↵
|
| | | 2 | ↵
|
2 | mv.visitCode();↵ | | 3 | mv.visitCode();↵
|
3 | Label line = new Label();↵ | | 4 | Label line = new Label();↵
|
4 | mv.visitLineNumber(0, line);↵ | | 5 | mv.visitLineNumber(0, line);↵
|
5 | return mv; | | 6 | return mv;
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 12 |
-
{Refactorable}
Mapping Summary
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) | 0.0 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | SkinnyMethodAdapter mv = new SkinnyMethodAdapter(cw.visitMethod(ACC_PUBLIC | ACC_SYNTHETIC | ACC_FINAL, "call", BLOCK_CALL_SIG, null, null)); | | 1 | SkinnyMethodAdapter mv = new SkinnyMethodAdapter(cw.visitMethod(ACC_PUBLIC | ACC_SYNTHETIC | ACC_FINAL, "call", BLOCK_CALL_SIG, null, null)); |
2 | mv.visitCode(); | | 2 | mv.visitCode(); |
3 | Label line = new Label(); | | 3 | Label line = new Label(); |
4 | mv.visitLineNumber(0, line); | | 4 | mv.visitLineNumber(0, line); |
5 | return mv; | | 5 | return mv; |
Precondition Violations (0)
Row |
Violation |