File path: /emf-2.4.1/src/org/eclipse/emf/mapping/util/MappingSwitch.java | File path: /emf-2.4.1/src/org/eclipse/emf/mapping/util/MappingSwitch.java | |||
Method name: T doSwitch(int, EObject)
|
Method name: T doSwitch(int, EObject)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | MappingStrategy mappingStrategy = (MappingStrategy)theEObject;↵ | 1 | MappingRoot mappingRoot = (MappingRoot)theEObject;↵ | |
2 | T result = caseMappingStrategy(mappingStrategy);↵ | 2 | T result = caseMappingRoot(mappingRoot);↵ | |
3 | if (result == null) result = caseMappingHelper(mappingStrategy);↵ | 3 | if (result == null) result = caseMapping(mappingRoot);↵ | |
4 | if (result == null) result = defaultCase(theEObject);↵ | 4 | if (result == null) result = defaultCase(theEObject);↵ | |
5 | return result; | 5 |
| |
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 | 23 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 3 |
Time elapsed for statement mapping (ms) | 1.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||
---|---|---|---|---|---|---|---|
43 | MappingStrategy mappingStrategy = (MappingStrategy)theEObject; | | |||||
44 | T result = caseMappingStrategy(mappingStrategy); | | |||||
| 51 | MappingRoot mappingRoot = (MappingRoot)theEObject; | |||||
| 52 | T result = caseMappingRoot(mappingRoot); | |||||
45 | if (result == null) | 53 | if (result == null) | ||||
46 | result = caseMappingHelper(mappingStrategy); |
| | ||||
|
| 54 | result = caseMapping(mappingRoot); | ||||
47 | if (result == null) | 55 | if (result == null) | ||||
48 | result = defaultCase(theEObject); | 56 | result = defaultCase(theEObject); | ||||
49 | return result; | 57 | return result; |
Row | Violation |
---|---|
1 | Unmatched statement result=caseMappingHelper(mappingStrategy); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement result=caseMapping(mappingRoot); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |