case Ecore2XMLPackage.ENAMED_ELEMENT_TO_XML_INFO_MAP_ENTRY__KEY:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
case Ecore2XMLPackage.ENAMED_ELEMENT_TO_XML_INFO_MAP_ENTRY__VALUE:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;
case Ecore2XMLPackage.XML_MAP__ID_ATTRIBUTE_NAME:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
case Ecore2XMLPackage.XML_MAP__ECORE_TO_XML_INFO:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/mapping/ecore2xml/provider/ENamedElementToXMLInfoMapEntryItemProvider.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: 6
|
|
Number of AST nodes: 6
|
|
1 | case Ecore2XMLPackage.ENAMED_ELEMENT_TO_XML_INFO_MAP_ENTRY__KEY:↵ | | 1 | case Ecore2XMLPackage.XML_MAP__ID_ATTRIBUTE_NAME:↵
|
2 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));↵ | | 2 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));↵
|
3 | return;↵ | | 3 | return;↵
|
4 | case Ecore2XMLPackage.ENAMED_ELEMENT_TO_XML_INFO_MAP_ENTRY__VALUE:↵ | | 4 | case Ecore2XMLPackage.XML_MAP__ECORE_TO_XML_INFO:↵
|
5 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));↵ | | 5 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));↵
|
6 | return; | | 6 | return;
|
See real code fragment |
|
See real code fragment |
Summary
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 27 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 6 |
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.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
3 | case Ecore2XMLPackage.ENAMED_ELEMENT_TO_XML_INFO_MAP_ENTRY__KEY: | | 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 Ecore2XMLPackage.ENAMED_ELEMENT_TO_XML_INFO_MAP_ENTRY__VALUE: | | 6 | case Ecore2XMLPackage.XML_MAP__ECORE_TO_XML_INFO: |
7 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); | | 7 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); |
8 | return; | | 8 | return; |
Precondition Violations (4)
Row |
Violation |
1 | Conditional return; |
2 | Conditional return; |
3 | Conditional return; |
4 | Conditional return; |