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/ETypedElementImpl.java | |||
Method name: EClassifier getEClassifier()
|
Method name: EClassifier getEType()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | InternalEObject oldEClassifier = (InternalEObject)eClassifier;↵ | 1 | InternalEObject oldEType = (InternalEObject)e↵ | |
2 | eClassifier↵ | 2 | Type;↵ | |
3 | = (EClassifier)eResolveProxy(oldEClassifier);↵ | 3 | eType = (EClassifier)eResolveProxy(oldEType);↵ | |
4 | if (eClassifier != oldEClassifier)↵ | 4 | if (eType != oldEType)↵ | |
5 | {↵ | 5 | {↵ | |
6 | if (eNotificationRequired())↵ | 6 | if (eNotificationRequired())↵ | |
7 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, EcorePackage.EGENERIC_TYPE__ECLASSIFIER, oldEClassifier, eClassifier));↵ | 7 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, EcorePackage.ETYPED_ELEMENT__ETYPE, oldEType, eType));↵ | |
8 | } | 8 |
| |
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.3 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 8 |
Number of mapped statements | 5 |
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.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | InternalEObject oldEClassifier = (InternalEObject)eClassifier; |
| 2 | InternalEObject oldEType = (InternalEObject)eType; | ||||||||||||||||||
3 | eClassifier = (EClassifier)eResolveProxy(oldEClassifier); |
| 3 | eType = (EClassifier)eResolveProxy(oldEType); | ||||||||||||||||||
4 | if (eClassifier != oldEClassifier) |
| 4 | if (eType != oldEType) | ||||||||||||||||||
5 | if (eNotificationRequired()) | 5 | if (eNotificationRequired()) | |||||||||||||||||||
6 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, EcorePackage.EGENERIC_TYPE__ECLASSIFIER, oldEClassifier, eClassifier)); |
| 6 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, EcorePackage.ETYPED_ELEMENT__ETYPE, oldEType, eType)); |
Row | Violation |
---|---|
1 | Expression eClassifier is a field being modified, and thus it cannot be parameterized |
2 | Expression eType is a field being modified, and thus it cannot be parameterized |
3 | Expression eClassifier cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression eType cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression eClassifier cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression eType cannot be parameterized, because it has dependencies to/from statements that will be extracted |