File path: /emf-2.4.1/src/org/eclipse/emf/ecore/change/impl/ChangeDescriptionImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/change/impl/ChangeDescriptionImpl.java | |||
Method name: Map
|
Method name: Map
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | EObject eObject = (EObject)featureMapEntry.getValue();↵ | 1 | EObject eObject = (EObject)featureChange.getValue();↵ | |
2 | if (eObject != null && (eObject.eContainer() != container || eObject.eContainmentFeature() != featureMapEntryFeature))↵ | 2 | if (eObject != null && (eObject.eContainer() != container || eObject.eContainmentFeature() != feature))↵ | |
3 | {↵ | 3 | ↵ | |
4 | ↵ | 4 | {↵ | |
5 | containmentInformation.put(eObject, new OldContainmentInformation(container, (EReference)featureMapEntryFeature));↵ | 5 | containmentInformation.put(eObject, new OldContainmentInformation(container, (EReference)feature));↵ | |
6 | } | 6 |
| |
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.4 |
Clones location | Clones are in the same method |
Number of node comparisons | 11 |
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) | 1.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
13 | EObject eObject = (EObject)featureMapEntry.getValue(); |
| 23 | EObject eObject = (EObject)featureChange.getValue(); | ||||||||||||||
14 | if (eObject != null && (eObject.eContainer() != container || eObject.eContainmentFeature() != featureMapEntryFeature)) |
| 24 | if (eObject != null && (eObject.eContainer() != container || eObject.eContainmentFeature() != feature)) | ||||||||||||||
15 | containmentInformation.put(eObject, new OldContainmentInformation(container, (EReference)featureMapEntryFeature)); |
| 25 | containmentInformation.put(eObject, new OldContainmentInformation(container, (EReference)feature)); |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.ecore.util.FeatureMap.Entry of variable featureMapEntry does not match with type org.eclipse.emf.ecore.change.FeatureChange of variable featureChange |