File path: /emf-2.4.1/src/org/eclipse/emf/mapping/ecore2xml/impl/ENamedElementToXMLInfoMapEntryImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EGenericTypeImpl.java | |||
Method name: void setTypedValue(XMLInfo)
|
Method name: void setEUpperBound(EGenericType)
|
|||
Number of AST nodes: 11 | Number of AST nodes: 11 | |||
1 | if (newValue != value)↵ | 1 | if (newEUpperBound != eUpperBound)↵ | |
2 | {↵ | 2 | {↵ | |
3 | NotificationChain msgs = null;↵ | 3 | NotificationChain msgs = null;↵ | |
4 | if (value != null)↵ | 4 | if (eUpperBound != null)↵ | |
5 | msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Ecore2XMLPackage.ENAMED_ELEMENT_TO_XML_INFO_MAP_ENTRY__VALUE, null, msgs);↵ | 5 | msgs = ((InternalEObject)eUpperBound).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EcorePackage.EGENERIC_TYPE__EUPPER_BOUND, null, msgs);↵ | |
6 | if (newValue != null)↵ | 6 | if (newEUpperBound != null)↵ | |
7 | msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Ecore2XMLPackage.ENAMED_ELEMENT_TO_XML_INFO_MAP_ENTRY__VALUE, null, msgs);↵ | 7 | msgs = ((InternalEObject)newEUpperBound).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EcorePackage.EGENERIC_TYPE__EUPPER_BOUND, null, msgs);↵ | |
8 | msgs = basicSetTypedValue(newValue, msgs);↵ | 8 | msgs = basicSetEUpperBound(newEUpperBound, msgs);↵ | |
9 | if (msgs != null) msgs.dispatch();↵ | 9 | if (msgs != null) msgs.dispatch();↵ | |
10 | }↵ | 10 | }↵ | |
11 | else if (eNotificationRequired())↵ | 11 | else if (eNotificationRequired())↵ | |
12 | eNotify(new ENotificationImpl(this, Notification.SET, Ecore2XMLPackage.ENAMED_ELEMENT_TO_XML_INFO_MAP_ENTRY__VALUE, newValue, newValue)); | 12 | eNotify(new ENotificationImpl(this, Notification.SET, EcorePackage.EGENERIC_TYPE__EUPPER_BOUND, newEUpperBound, newEUpperBound)); | |
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 different classes having the same super class |
Number of node comparisons | 32 |
Number of mapped statements | 7 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 1.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | NotificationChain msgs = null; | 2 | NotificationChain msgs = null; | ||||||||||||||||||||||
3 | if (value != null) |
| 3 | if (eUpperBound != null) | |||||||||||||||||||||
4 | msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Ecore2XMLPackage.ENAMED_ELEMENT_TO_XML_INFO_MAP_ENTRY__VALUE, null, msgs); |
| 4 | msgs = ((InternalEObject)eUpperBound).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EcorePackage.EGENERIC_TYPE__EUPPER_BOUND, null, msgs); | |||||||||||||||||||||
5 | if (newValue != null) |
| 5 | if (newEUpperBound != null) | |||||||||||||||||||||
6 | msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Ecore2XMLPackage.ENAMED_ELEMENT_TO_XML_INFO_MAP_ENTRY__VALUE, null, msgs); |
| 6 | msgs = ((InternalEObject)newEUpperBound).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EcorePackage.EGENERIC_TYPE__EUPPER_BOUND, null, msgs); | |||||||||||||||||||||
|
| 7 | msgs = basicSetEUpperBound(newEUpperBound, msgs); | ||||||||||||||||||||||
7 | msgs = basicSetTypedValue(newValue, msgs); |
| | ||||||||||||||||||||||
8 | if (msgs != null) | 8 | if (msgs != null) | ||||||||||||||||||||||
9 | msgs.dispatch(); | 9 | msgs.dispatch(); |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.mapping.ecore2xml.XMLInfo of variable value does not match with type org.eclipse.emf.ecore.EGenericType of variable eUpperBound |
2 | Type org.eclipse.emf.mapping.ecore2xml.Ecore2XMLPackage of variable Ecore2XMLPackage does not match with type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage |
3 | Type org.eclipse.emf.mapping.ecore2xml.XMLInfo of variable value does not match with type org.eclipse.emf.ecore.EGenericType of variable eUpperBound |
4 | Type org.eclipse.emf.mapping.ecore2xml.XMLInfo of variable newValue does not match with type org.eclipse.emf.ecore.EGenericType of variable newEUpperBound |
5 | Type org.eclipse.emf.mapping.ecore2xml.Ecore2XMLPackage of variable Ecore2XMLPackage does not match with type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage |
6 | Type org.eclipse.emf.mapping.ecore2xml.XMLInfo of variable newValue does not match with type org.eclipse.emf.ecore.EGenericType of variable newEUpperBound |
7 | Unmatched statement msgs=basicSetEUpperBound(newEUpperBound,msgs); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
8 | Unmatched statement msgs=basicSetTypedValue(newValue,msgs); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |