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/MappingHelperImpl.java | |||
Method name: EObject getHelpedObject()
|
Method name: void setHelpedObject(EObject)
|
|||
Number of AST nodes: 2 | Number of AST nodes: 2 | |||
1 | if (eNotificationRequired())↵ | 1 | if (eNotificationRequired())↵ | |
2 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, MappingPackage.MAPPING_HELPER__HELPED_OBJECT, oldHelpedObject, helpedObject)); | 2 | eNotify(new ENotificationImpl(this, Notification.SET, MappingPackage.MAPPING_HELPER__HELPED_OBJECT, oldHelpedObject, helpedObject)); | |
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 | 4 |
Number of mapped statements | 2 |
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.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5 | if (eNotificationRequired()) | 3 | if (eNotificationRequired()) | |||||||||||||||
6 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, MappingPackage.MAPPING_HELPER__HELPED_OBJECT, oldHelpedObject, helpedObject)); |
| 4 | eNotify(new ENotificationImpl(this, Notification.SET, MappingPackage.MAPPING_HELPER__HELPED_OBJECT, oldHelpedObject, helpedObject)); |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.ecore.InternalEObject of variable oldHelpedObject does not match with type org.eclipse.emf.ecore.EObject of variable oldHelpedObject |