File path: /jEdit-4.2/src/org/objectweb/asm/CodeWriter.java | File path: /jEdit-4.2/src/org/objectweb/asm/CodeWriter.java | |||
Method name: void visitMaxs(int, int)
|
Method name: void visitTryCatchBlock(Label, Label, Label, String)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (!l.pushed) {↵ | 1 | if (!handler.pushed) {↵ | |
2 | // computes the true beginning stack size of this successor block↵ | 2 | ↵ | |
3 | l.beginStackSize = start + b.stackSize;↵ | 3 | handler.beginStackSize = 1;↵ | |
4 | // pushes this successor onto the stack↵ | 4 | ↵ | |
5 | l.pushed = true;↵ | 5 | handler.pushed = true;↵ | |
6 | l.next = stack;↵ | 6 | handler.next = blockStack;↵ | |
7 | stack = l;↵ | 7 | blockStack = ↵ | |
8 | ↵ | 8 | handler;↵ | |
9 | } | 9 |
| |
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 | 26 |
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.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14 | if (!l.pushed) |
| 7 | if (!handler.pushed) | ||||||||||||||
15 | l.beginStackSize = start + b.stackSize; |
| 8 | handler.beginStackSize = 1; | ||||||||||||||
16 | l.pushed = true; |
| 9 | handler.pushed = true; | ||||||||||||||
17 | l.next = stack; |
| 10 | handler.next = blockStack; | ||||||||||||||
18 | stack = l; |
| 11 | blockStack = handler; |
Row | Violation |
---|---|
1 | Expression stack cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression blockStack is a field being modified, and thus it cannot be parameterized |
3 | Clone fragment #1 returns variables stack , while Clone fragment #2 returns variables |