File path: /emf-2.4.1/src/org/eclipse/emf/mapping/impl/MappingHelperImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/mapping/impl/MappingImpl.java | |||
Method name: NotificationChain eInverseAdd(InternalEObject, int, NotificationChain)
|
Method name: NotificationChain eInverseAdd(InternalEObject, int, NotificationChain)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | case MappingPackage.MAPPING_HELPER__MAPPER:↵ | 1 | case MappingPackage.MAPPING__NESTED_IN:↵ | |
2 | if (eInternalContainer() != null)↵ | 2 | if (eInternalContainer() != null)↵ | |
3 | msgs = eBasicRemoveFromContainer(msgs);↵ | 3 | msgs = eBasicRemoveFromContainer(msgs);↵ | |
4 | return basicSetMapper((Mapping)otherEnd, msgs); | 4 | return basicSetNestedIn((Mapping)otherEnd, msgs); | |
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 in different classes having the same super class |
Number of node comparisons | 9 |
Number of mapped statements | 4 |
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.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | case MappingPackage.MAPPING_HELPER__MAPPER: |
| 8 | case MappingPackage.MAPPING__NESTED_IN: | ||||||||||||
3 | if (eInternalContainer() != null) | 9 | if (eInternalContainer() != null) | |||||||||||||
4 | msgs = eBasicRemoveFromContainer(msgs); | 10 | msgs = eBasicRemoveFromContainer(msgs); | |||||||||||||
5 | return basicSetMapper((Mapping)otherEnd, msgs); |
| 11 | return basicSetNestedIn((Mapping)otherEnd, msgs); |
Row | Violation |
---|---|
1 | Expression basicSetMapper((Mapping)otherEnd,msgs) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression basicSetNestedIn((Mapping)otherEnd,msgs) cannot be parameterized, because it has dependencies to/from statements that will be extracted |