File path: /emf-2.4.1/src/org/eclipse/emf/ecore/provider/EAnnotationItemProvider.java | File path: /emf-2.4.1/src/org/eclipse/emf/mapping/ecore2xml/provider/XMLMapItemProvider.java | |||
Method name: void notifyChanged(Notification)
|
Method name: void notifyChanged(Notification)
|
|||
Number of AST nodes: 10 | Number of AST nodes: 9 | |||
1 | updateChildren(notification);↵ | 1 | updateChildren(notification);↵ | |
2 | switch (notification.getFeatureID(EAnnotation.class))↵ | 2 | switch (notification.getFeatureID(XMLMap.class))↵ | |
3 | {↵ | 3 | {↵ | |
4 | case EcorePackage.EANNOTATION__SOURCE:↵ | 4 | case Ecore2XMLPackage.XML_MAP__ID_ATTRIBUTE_NAME:↵ | |
5 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));↵ | 5 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));↵ | |
6 | return;↵ | 6 | return;↵ | |
7 | case EcorePackage.EANNOTATION__DETAILS:↵ | 7 | case Ecore2XMLPackage.↵ | |
8 | case EcorePackage.EANNOTATION__CONTENTS:↵ | 8 | XML_MAP__ECORE_TO_XML_INFO:↵ | |
9 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));↵ | 9 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));↵ | |
10 | return;↵ | 10 | return;↵ | |
11 | }↵ | 11 | }↵ | |
12 | super.notifyChanged(notification); | 12 |
| |
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 | 32 |
Number of mapped statements | 9 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 1.4 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | updateChildren(notification); | 1 | updateChildren(notification); | |||||||||||||||
2 | switch (notification.getFeatureID(EAnnotation.class)) | 2 | switch (notification.getFeatureID(XMLMap.class)) | |||||||||||||||
3 | case EcorePackage.EANNOTATION__SOURCE: |
| 3 | case Ecore2XMLPackage.XML_MAP__ID_ATTRIBUTE_NAME: | ||||||||||||||
4 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); | 4 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); | |||||||||||||||
5 | return; | 5 | return; | |||||||||||||||
6 | case EcorePackage.EANNOTATION__DETAILS: |
| 6 | case Ecore2XMLPackage.XML_MAP__ECORE_TO_XML_INFO: | ||||||||||||||
7 | case EcorePackage.EANNOTATION__CONTENTS: | | ||||||||||||||||
8 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); | 7 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); | |||||||||||||||
9 | return; | 8 | return; | |||||||||||||||
10 | super.notifyChanged(notification); | 9 | super.notifyChanged(notification); |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.mapping.ecore2xml.Ecore2XMLPackage of variable Ecore2XMLPackage |
2 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.mapping.ecore2xml.Ecore2XMLPackage of variable Ecore2XMLPackage |