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: NotificationChain setERawType(EClassifier, NotificationChain)
|
Method name: NotificationChain setEClassifier(EClassifier, NotificationChain)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | ENotificationImpl notification = ↵ | 1 | ENotificationImpl notification = ↵ | |
2 | new ENotificationImpl(this, Notification.SET, EcorePackage.EGENERIC_TYPE__ERAW_TYPE, oldERawType, eRawType);↵ | 2 | new ENotificationImpl(this, Notification.SET, EcorePackage.EGENERIC_TYPE__ECLASSIFIER, oldEClassifier, eClassifier);↵ | |
3 | if (msgs == null)↵ | 3 | if (msgs == null)↵ | |
4 | {↵ | 4 | {↵ | |
5 | msgs = notification;↵ | 5 | msgs = notification;↵ | |
6 | }↵ | 6 | }↵ | |
7 | else↵ | 7 | else↵ | |
8 | {↵ | 8 | {↵ | |
9 | msgs.add(notification);↵ | 9 | msgs.add(notification);↵ | |
10 | } | 10 |
| |
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 declared in the same 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 | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EcorePackage.EGENERIC_TYPE__ERAW_TYPE, oldERawType, eRawType); |
| 4 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EcorePackage.EGENERIC_TYPE__ECLASSIFIER, oldEClassifier, eClassifier); | ||||||||||||||||
7 | if (msgs == null) | 5 | if (msgs == null) | |||||||||||||||||
8 | msgs = notification; | 6 | msgs = notification; | |||||||||||||||||
else | else | |||||||||||||||||||
9 | msgs.add(notification); | 7 | msgs.add(notification); |
Row | Violation |
---|