File path: /jEdit-4.2/src/org/objectweb/asm/Type.java | File path: /jEdit-4.2/src/org/objectweb/asm/Type.java | |||
Method name: int getOpcode(int)
|
Method name: int getOpcode(int)
|
|||
Number of AST nodes: 20 | Number of AST nodes: 17 | |||
1 | switch (sort) {↵ | 1 | switch (sort) {↵ | |
2 | case VOID:↵ | 2 | case VOID:↵ | |
3 | return opcode + 5;↵ | 3 | return opcode + 5;↵ | |
4 | case BOOLEAN:↵ | 4 | case BOOLEAN:↵ | |
5 | case BYTE:↵ | 5 | case ↵ | |
6 | return opcode + 6;↵ | |||
7 | case CHAR:↵ | |||
8 | return opcode + 7;↵ | |||
9 | case SHORT:↵ | |||
10 | return opcode + 8;↵ | 6 | CHAR:↵ | |
7 | case BYTE:↵ | |||
8 | case SHORT:↵ | |||
11 | case INT:↵ | 9 | case INT:↵ | |
12 | return opcode;↵ | 10 | return opcode;↵ | |
13 | case FLOAT:↵ | 11 | case FLOAT:↵ | |
14 | return opcode + 2;↵ | 12 | return opcode + 2;↵ | |
15 | case LONG:↵ | 13 | case LONG:↵ | |
16 | return opcode + 1;↵ | 14 | return opcode + 1;↵ | |
17 | case DOUBLE:↵ | 15 | case DOUBLE:↵ | |
18 | return opcode + 3;↵ | 16 | return opcode + 3;↵ | |
19 | //case ARRAY:↵ | 17 | //case ARRAY:↵ | |
20 | //case OBJECT:↵ | 18 | //case OBJECT:↵ | |
21 | default:↵ | 19 | default:↵ | |
22 | return opcode + 4;↵ | 20 | return opcode + 4;↵ | |
23 | } | 21 |
| |
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 the same method |
Number of node comparisons | 155 |
Number of mapped statements | 17 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 19.6 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | switch (sort) | 22 | switch (sort) | |||||||||||
3 | case VOID: | 23 | case VOID: | |||||||||||
4 | return opcode + 5; | 24 | return opcode + 5; | |||||||||||
5 | case BOOLEAN: | 25 | case BOOLEAN: | |||||||||||
6 | case BYTE: |
| 29 | case INT: | ||||||||||
7 | return opcode + 6; |
| 30 | return opcode; | ||||||||||
8 | case CHAR: |
| 31 | case FLOAT: | ||||||||||
9 | return opcode + 7; |
| 32 | return opcode + 2; | ||||||||||
10 | case SHORT: |
| 33 | case LONG: | ||||||||||
11 | return opcode + 8; |
| 34 | return opcode + 1; | ||||||||||
12 | case INT: |
| 35 | case DOUBLE: | ||||||||||
13 | return opcode; |
| 36 | return opcode + 3; | ||||||||||
14 | case FLOAT: |
| 26 | case CHAR: | ||||||||||
15 | return opcode + 2; |
| | |||||||||||
16 | case LONG: |
| 27 | case BYTE: | ||||||||||
17 | return opcode + 1; |
| | |||||||||||
18 | case DOUBLE: |
| 28 | case SHORT: | ||||||||||
19 | return opcode + 3; |
| | |||||||||||
20 | default: | 37 | default: | |||||||||||
21 | return opcode + 4; | 38 | return opcode + 4; |
Row | Violation |
---|---|
1 | Unmatched return opcode + 2; |
2 | Unmatched return opcode + 1; |
3 | Unmatched return opcode + 3; |