File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/ETypedElementImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/ETypedElementImpl.java | |||
Method name: NotificationChain setEType(EClassifier, NotificationChain)
|
Method name: NotificationChain setEGenericType(EGenericType, NotificationChain)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (eNotificationRequired())↵ | 1 | if (eNotificationRequired())↵ | |
2 | {↵ | 2 | {↵ | |
3 | ENotificationImpl notification = ↵ | 3 | ENotificationImpl notification = ↵ | |
4 | new ENotificationImpl(this, Notification.SET, EcorePackage.ETYPED_ELEMENT__ETYPE, oldEType, eType);↵ | 4 | new ENotificationImpl(this, Notification.SET, EcorePackage.ETYPED_ELEMENT__EGENERIC_TYPE, newEGenericType, newEGenericType);↵ | |
5 | if (msgs == null)↵ | 5 | if (msgs == null)↵ | |
6 | {↵ | 6 | {↵ | |
7 | msgs = notification;↵ | 7 | msgs = notification;↵ | |
8 | }↵ | 8 | }↵ | |
9 | else↵ | 9 | else↵ | |
10 | {↵ | 10 | {↵ | |
11 | msgs.add(notification);↵ | 11 | msgs.add(notification);↵ | |
12 | }↵ | 12 | }↵ | |
13 | } | 13 |
| |
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.2 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 13 |
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 | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | if (eNotificationRequired()) | 7 | if (eNotificationRequired()) | ||||||||||||||||||
4 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EcorePackage.ETYPED_ELEMENT__ETYPE, oldEType, eType); |
| 8 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EcorePackage.ETYPED_ELEMENT__EGENERIC_TYPE, newEGenericType, newEGenericType); | |||||||||||||||||
5 | if (msgs == null) | 9 | if (msgs == null) | ||||||||||||||||||
6 | msgs = notification; | 10 | msgs = notification; | ||||||||||||||||||
else | else | ||||||||||||||||||||
7 | msgs.add(notification); | 11 | msgs.add(notification); |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.ecore.EClassifier of variable oldEType does not match with type org.eclipse.emf.ecore.EGenericType of variable newEGenericType |