File path: /jruby-1.4.0/src/org/jruby/compiler/impl/SkinnyMethodAdapter.java | File path: /jruby-1.4.0/src/org/jruby/compiler/impl/SkinnyMethodAdapter.java | |||
Method name: void end()
|
Method name: void visitMaxs(int, int)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 6 | |||
1 | if (DEBUG) {↵ | 1 | if (DEBUG) {↵ | |
2 | PrintWriter pw = new PrintWriter(System.out);↵ | 2 | PrintWriter pw = new PrintWriter(System.out);↵ | |
3 | pw.write("*** Dumping ***\n");↵ | 3 | pw.write("*** Dumping ***\n");↵ | |
4 | ((TraceMethodVisitor)getMethodVisitor()).print(pw);↵ | 4 | ((TraceMethodVisitor)getMethodVisitor()).print(pw);↵ | |
5 | pw.flush();↵ | 5 | pw.flush();↵ | |
6 | }↵ | 6 | }↵ | |
7 | getMethodVisitor().visitMaxs(1, 1);↵ | 7 | getMethodVisitor().visitMaxs(↵ | |
8 | getMethodVisitor().visitEnd(); | 8 | arg0, arg1); | |
See real code fragment | See real code fragment |
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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 27 |
Number of mapped statements | 6 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 2.2 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (DEBUG) | 1 | if (DEBUG) | ||||||||||||||
2 | PrintWriter pw = new PrintWriter(System.out); | 2 | PrintWriter pw = new PrintWriter(System.out); | ||||||||||||||
3 | pw.write("*** Dumping ***\n"); | 3 | pw.write("*** Dumping ***\n"); | ||||||||||||||
4 | ((TraceMethodVisitor)getMethodVisitor()).print(pw); | 4 | ((TraceMethodVisitor)getMethodVisitor()).print(pw); | ||||||||||||||
5 | pw.flush(); | 5 | pw.flush(); | ||||||||||||||
6 | getMethodVisitor().visitMaxs(1, 1); |
| 6 | getMethodVisitor().visitMaxs(arg0, arg1); | |||||||||||||
7 | getMethodVisitor().visitEnd(); | |
Row | Violation |
---|