File path: /emf-2.4.1/src/org/eclipse/emf/ecore/provider/EEnumLiteralItemProvider.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/change/provider/FeatureMapEntryItemProvider.java | |||
Method name: void notifyChanged(Notification)
|
Method name: void notifyChanged(Notification)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | updateChildren(notification);↵ | 1 | updateChildren(notification);↵ | |
2 | switch (notification.getFeatureID(EEnumLiteral.class))↵ | 2 | switch (notification.getFeatureID(FeatureMapEntry.class))↵ | |
3 | {↵ | 3 | {↵ | |
4 | case EcorePackage.EENUM_LITERAL__VALUE:↵ | 4 | case ChangePackage.FEATURE_MAP_ENTRY__FEATURE_NAME:↵ | |
5 | case EcorePackage.EENUM_LITERAL__INSTANCE:↵ | 5 | case ChangePackage.FEATURE_MAP_ENTRY__DATA_VALUE:↵ | |
6 | case EcorePackage.EENUM_LITERAL__LITERAL:↵ | 6 | case ChangePackage.FEATURE_MAP_ENTRY__VALUE:↵ | |
7 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));↵ | 7 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));↵ | |
8 | return;↵ | 8 | return;↵ | |
9 | }↵ | 9 | }↵ | |
10 | super.notifyChanged(notification); | 10 |
| |
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.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 23 |
Number of mapped statements | 8 |
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.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | updateChildren(notification); | 1 | updateChildren(notification); | |||||||||||||||
2 | switch (notification.getFeatureID(EEnumLiteral.class)) | 2 | switch (notification.getFeatureID(FeatureMapEntry.class)) | |||||||||||||||
3 | case EcorePackage.EENUM_LITERAL__VALUE: |
| 3 | case ChangePackage.FEATURE_MAP_ENTRY__FEATURE_NAME: | ||||||||||||||
4 | case EcorePackage.EENUM_LITERAL__INSTANCE: |
| 4 | case ChangePackage.FEATURE_MAP_ENTRY__DATA_VALUE: | ||||||||||||||
5 | case EcorePackage.EENUM_LITERAL__LITERAL: |
| 5 | case ChangePackage.FEATURE_MAP_ENTRY__VALUE: | ||||||||||||||
6 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); | 6 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); | |||||||||||||||
7 | return; | 7 | return; | |||||||||||||||
8 | super.notifyChanged(notification); | 8 | super.notifyChanged(notification); |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.change.ChangePackage of variable ChangePackage |
2 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.change.ChangePackage of variable ChangePackage |
3 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.change.ChangePackage of variable ChangePackage |