File path: /jEdit-4.2/src/bsh/ClassGeneratorUtil.java | File path: /jEdit-4.2/src/bsh/ClassGeneratorUtil.java | |||
Method name: void generateMethod(String, String, String, String, String[], int, ClassWriter)
|
Method name: void generateSuperDelegateMethod(Class, String, String, String, String[], int, ClassWriter)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if ( returnType == null ) // map loose return type to Object↵ | 1 | if ( returnType == null ) // map loose return to Object↵ | |
2 | returnType = OBJECT;↵ | 2 | returnType = OBJECT;↵ | |
3 | String methodDescriptor = getMethodDescriptor( returnType, paramTypes ); | 3 |
| |
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 | 5 |
Number of mapped statements | 3 |
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.7 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
3 | if (returnType == null) | 2 | if (returnType == null) | |
4 | returnType = OBJECT; | 3 | returnType = OBJECT; | |
5 | String methodDescriptor = getMethodDescriptor(returnType, paramTypes); | 4 | String methodDescriptor = getMethodDescriptor(returnType, paramTypes); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables methodDescriptor, returnType , while Clone fragment #2 returns variables methodDescriptor, returnType |