File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EGenericTypeImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EGenericTypeImpl.java | |||
Method name: void setELowerBound(EGenericType)
|
Method name: void setEUpperBound(EGenericType)
|
|||
Number of AST nodes: 11 | Number of AST nodes: 11 | |||
1 | if (newELowerBound != eLowerBound)↵ | 1 | if (newEUpperBound != eUpperBound)↵ | |
2 | {↵ | 2 | {↵ | |
3 | NotificationChain msgs = null;↵ | 3 | NotificationChain msgs = null;↵ | |
4 | if (eLowerBound != null)↵ | 4 | if (eUpperBound != null)↵ | |
5 | msgs = ((InternalEObject)eLowerBound).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EcorePackage.EGENERIC_TYPE__ELOWER_BOUND, null, msgs);↵ | 5 | msgs = ((InternalEObject)eUpperBound).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EcorePackage.EGENERIC_TYPE__EUPPER_BOUND, null, msgs);↵ | |
6 | if (newELowerBound != null)↵ | 6 | if (newEUpperBound != null)↵ | |
7 | msgs = ((InternalEObject)newELowerBound).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EcorePackage.EGENERIC_TYPE__ELOWER_BOUND, null, msgs);↵ | 7 | msgs = ((InternalEObject)newEUpperBound).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EcorePackage.EGENERIC_TYPE__EUPPER_BOUND, null, msgs);↵ | |
8 | msgs = basicSetELowerBound(newELowerBound, 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, EcorePackage.EGENERIC_TYPE__ELOWER_BOUND, newELowerBound, newELowerBound)); | 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 declared in the same class |
Number of node comparisons | 40 |
Number of mapped statements | 11 |
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) | 2.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (newELowerBound != eLowerBound) |
| 1 | if (newEUpperBound != eUpperBound) | ||||||||||||||||
2 | NotificationChain msgs = null; | 2 | NotificationChain msgs = null; | |||||||||||||||||
3 | if (eLowerBound != null) |
| 3 | if (eUpperBound != null) | ||||||||||||||||
4 | msgs = ((InternalEObject)eLowerBound).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EcorePackage.EGENERIC_TYPE__ELOWER_BOUND, null, msgs); |
| 4 | msgs = ((InternalEObject)eUpperBound).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EcorePackage.EGENERIC_TYPE__EUPPER_BOUND, null, msgs); | ||||||||||||||||
5 | if (newELowerBound != null) |
| 5 | if (newEUpperBound != null) | ||||||||||||||||
6 | msgs = ((InternalEObject)newELowerBound).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EcorePackage.EGENERIC_TYPE__ELOWER_BOUND, null, msgs); |
| 6 | msgs = ((InternalEObject)newEUpperBound).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EcorePackage.EGENERIC_TYPE__EUPPER_BOUND, null, msgs); | ||||||||||||||||
7 | msgs = basicSetELowerBound(newELowerBound, msgs); |
| 7 | msgs = basicSetEUpperBound(newEUpperBound, msgs); | ||||||||||||||||
8 | if (msgs != null) | 8 | if (msgs != null) | |||||||||||||||||
9 | msgs.dispatch(); | 9 | msgs.dispatch(); | |||||||||||||||||
10 | else if (eNotificationRequired()) | 10 | else if (eNotificationRequired()) | |||||||||||||||||
11 | eNotify(new ENotificationImpl(this, Notification.SET, EcorePackage.EGENERIC_TYPE__ELOWER_BOUND, newELowerBound, newELowerBound)); |
| 11 | eNotify(new ENotificationImpl(this, Notification.SET, EcorePackage.EGENERIC_TYPE__EUPPER_BOUND, newEUpperBound, newEUpperBound)); |
Row | Violation |
---|---|
1 | Expression basicSetELowerBound(newELowerBound,msgs) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression basicSetEUpperBound(newEUpperBound,msgs) cannot be parameterized, because it has dependencies to/from statements that will be extracted |