File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/BasicEObjectImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EGenericTypeImpl.java | |||
Method name: NotificationChain eBasicSetContainer(InternalEObject, int, NotificationChain)
|
Method name: NotificationChain setERawType(EClassifier, NotificationChain)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | ENotificationImpl notification =↵ | 1 | ENotificationImpl notification =↵ | |
2 | new ENotificationImpl↵ | 2 | new ENotificationImpl↵ | |
3 | (this,↵ | |||
4 | Notification.SET,↵ | |||
5 | newContainerFeatureID, ↵ | |||
6 | oldContainerFeatureID == newContainerFeatureID ? oldContainer : null,↵ | |||
7 | newContainer);↵ | 3 | (this, Notification.SET, EcorePackage.EGENERIC_TYPE__ERAW_TYPE, oldERawType, eRawType);↵ | |
8 | if (msgs == null)↵ | 4 | if (msgs == null)↵ | |
9 | {↵ | 5 | {↵ | |
10 | msgs = notification;↵ | 6 | msgs = notification;↵ | |
11 | }↵ | 7 | ↵ | |
12 | ↵ | 8 | }↵ | |
13 | else↵ | 9 | else↵ | |
14 | {↵ | 10 | ↵ | |
15 | ↵ | 11 | {↵ | |
16 | msgs.add(notification);↵ | 12 | msgs.add(notification);↵ | |
17 | } | 13 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 11 |
Number of mapped statements | 4 |
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.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
27 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, newContainerFeatureID, oldContainerFeatureID == newContainerFeatureID ? oldContainer : null, newContainer); |
| 6 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EcorePackage.EGENERIC_TYPE__ERAW_TYPE, oldERawType, eRawType); | ||||||||||
28 | if (msgs == null) | 7 | if (msgs == null) | |||||||||||
29 | msgs = notification; | 8 | msgs = notification; | |||||||||||
else | else | |||||||||||||
30 | msgs.add(notification); | 9 | msgs.add(notification); |
Row | Violation |
---|