car = 'B';
} else if (d == Character.TYPE) {
car = 'C';
} else if (d == Short.TYPE) {
car = 'S';
} else if (d == Double.TYPE) {
car = 'D';
} else if (d == Float.TYPE) {
car = 'F';
car = 'I';
} else if (d == Void.TYPE) {
car = 'V';
} else if (d == Boolean.TYPE) {
car = 'Z';
} else if (d == Byte.TYPE) {
car = 'B';
} else if (d == Character.TYPE) {
car = 'C';
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/objectweb/asm/Type.java
|
|
File path: /jEdit-4.2/src/org/objectweb/asm/Type.java
|
Method name: void getDescriptor(StringBuffer, Class)
|
|
Method name: void getDescriptor(StringBuffer, Class)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 5
|
|
1 | car = 'B';↵ | | 1 | car = 'I';↵
|
2 | } else if (d == Character.TYPE) {↵ | | 2 | } else if (d == Void.TYPE) {↵
|
3 | car = 'C';↵ | | 3 | car = 'V';↵
|
4 | } else if (d == Short.TYPE) {↵ | | 4 | } else if (d == Boolean.TYPE) {↵
|
5 | car = 'S';↵ | | 5 | car = 'Z';↵
|
6 | } else if (d == Double.TYPE) {↵ | | 6 | } else if (d == Byte.TYPE) {↵
|
7 | car = 'D';↵ | | 7 | car = 'B';↵
|
8 | } else if (d == Float.TYPE) {↵ | | 8 | } else if (d == Character.TYPE) {↵
|
9 | car = 'F'; | | 9 | car = 'C';
|
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 the same method |
Number of node comparisons | 2 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 1 |
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 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
12 | car = 'B'; | | 6 | car = 'I'; |
Precondition Violations (0)
Row |
Violation |