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 setEClassifier(EClassifier, NotificationChain)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | ENotificationImpl notification =↵ | 1 | ENotificationImpl notification =↵ | |
2 | ↵ | 2 | ↵ | |
3 | new ENotificationImpl↵ | 3 | new ENotificationImpl↵ | |
4 | (this,↵ | |||
5 | Notification.SET,↵ | |||
6 | newContainerFeatureID, ↵ | |||
7 | oldContainerFeatureID == newContainerFeatureID ? oldContainer : null,↵ | |||
8 | newContainer);↵ | 4 | (this, Notification.SET, EcorePackage.EGENERIC_TYPE__ECLASSIFIER, oldEClassifier, eClassifier);↵ | |
9 | if (msgs == null)↵ | 5 | if (msgs == null)↵ | |
10 | {↵ | 6 | {↵ | |
11 | msgs = notification;↵ | 7 | msgs = notification;↵ | |
12 | }↵ | 8 | ↵ | |
13 | ↵ | 9 | }↵ | |
14 | else↵ | 10 | else↵ | |
15 | {↵ | 11 | ↵ | |
16 | ↵ | 12 | {↵ | |
17 | msgs.add(notification);↵ | 13 | msgs.add(notification);↵ | |
18 | } | 14 |
| |
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) | 0.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
27 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, newContainerFeatureID, oldContainerFeatureID == newContainerFeatureID ? oldContainer : null, newContainer); |
| 4 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EcorePackage.EGENERIC_TYPE__ECLASSIFIER, oldEClassifier, eClassifier); | ||||||||||
28 | if (msgs == null) | 5 | if (msgs == null) | |||||||||||
29 | msgs = notification; | 6 | msgs = notification; | |||||||||||
else | else | |||||||||||||
30 | msgs.add(notification); | 7 | msgs.add(notification); |
Row | Violation |
---|