File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreSwitch.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 | EAnnotation eAnnotation = (EAnnotation)theEObject;↵ | 1 | MappingRoot mappingRoot = (MappingRoot)theEObject;↵ | |
2 | T result = caseEAnnotation(eAnnotation);↵ | 2 | T result = caseMappingRoot(mappingRoot);↵ | |
3 | if (result == null) result = caseEModelElement(eAnnotation);↵ | 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 different classes |
Number of node comparisons | 23 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 5 |
Number of unmapped statements in the second code fragment | 5 |
Time elapsed for statement mapping (ms) | 0.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17 | EAnnotation eAnnotation = (EAnnotation)theEObject; | | |||||||||||||
18 | T result = caseEAnnotation(eAnnotation); | | |||||||||||||
| 51 | MappingRoot mappingRoot = (MappingRoot)theEObject; | |||||||||||||
| 52 | T result = caseMappingRoot(mappingRoot); | |||||||||||||
19 | if (result == null) |
| 53 | if (result == null) | |||||||||||
20 | result = caseEModelElement(eAnnotation); |
| | ||||||||||||
|
| 54 | result = caseMapping(mappingRoot); | ||||||||||||
21 | if (result == null) |
| 55 | if (result == null) | |||||||||||
22 | result = defaultCase(theEObject); |
| | ||||||||||||
|
| 56 | result = defaultCase(theEObject); | ||||||||||||
23 | return result; |
| | ||||||||||||
|
| 57 | return result; |
Row | Violation |
---|---|
1 | Type T of variable result does not match with type T of variable result |
2 | Unmatched statement result=caseEModelElement(eAnnotation); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | 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 |
4 | Type T of variable result does not match with type T of variable result |
5 | Unmatched statement result=defaultCase(theEObject); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
6 | Unmatched statement result=defaultCase(theEObject); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
7 | Unmatched return result; |
8 | Unmatched return result; |