File path: /emf-2.4.1/src/org/eclipse/emf/ecore/change/provider/ChangeDescriptionItemProvider.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(ChangeDescription.class))↵ | 2 | switch (notification.getFeatureID(FeatureMapEntry.class))↵ | |
3 | {↵ | 3 | {↵ | |
4 | case ChangePackage.CHANGE_DESCRIPTION__OBJECT_CHANGES:↵ | 4 | case ChangePackage.↵ | |
5 | case ChangePackage.CHANGE_DESCRIPTION__OBJECTS_TO_ATTACH:↵ | |||
6 | case ChangePackage.CHANGE_DESCRIPTION__RESOURCE_CHANGES↵ | 5 | FEATURE_MAP_ENTRY__FEATURE_NAME:↵ | |
6 | case ChangePackage.FEATURE_MAP_ENTRY__DATA_VALUE:↵ | |||
7 | :↵ | 7 | case ChangePackage.FEATURE_MAP_ENTRY__VALUE:↵ | |
8 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));↵ | 8 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));↵ | |
9 | return;↵ | 9 | return;↵ | |
10 | }↵ | 10 | }↵ | |
11 | super.notifyChanged(notification); | 11 |
| |
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 | 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.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | updateChildren(notification); | 1 | updateChildren(notification); | ||||||||||||||
2 | switch (notification.getFeatureID(ChangeDescription.class)) | 2 | switch (notification.getFeatureID(FeatureMapEntry.class)) | ||||||||||||||
3 | case ChangePackage.CHANGE_DESCRIPTION__OBJECT_CHANGES: |
| 3 | case ChangePackage.FEATURE_MAP_ENTRY__FEATURE_NAME: | |||||||||||||
4 | case ChangePackage.CHANGE_DESCRIPTION__OBJECTS_TO_ATTACH: |
| 4 | case ChangePackage.FEATURE_MAP_ENTRY__DATA_VALUE: | |||||||||||||
5 | case ChangePackage.CHANGE_DESCRIPTION__RESOURCE_CHANGES: |
| 5 | case ChangePackage.FEATURE_MAP_ENTRY__VALUE: | |||||||||||||
6 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); |
| 6 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); | |||||||||||||
7 | return; | 7 | return; | ||||||||||||||
8 | super.notifyChanged(notification); | 8 | super.notifyChanged(notification); |
Row | Violation |
---|