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;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons27
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements6
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    3
    case Ecore2XMLPackage.ENAMED_ELEMENT_TO_XML_INFO_MAP_ENTRY__KEY:
    3
    case Ecore2XMLPackage.ENAMED_ELEMENT_TO_XML_INFO_MAP_ENTRY__KEY:
    3
    case Ecore2XMLPackage.XML_MAP__ID_ATTRIBUTE_NAME:
    Differences
    Expression1Expression2Difference
    ENAMED_ELEMENT_TO_XML_INFO_MAP_ENTRY__KEYXML_MAP__ID_ATTRIBUTE_NAMEVARIABLE_NAME_MISMATCH
    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;
    5
    return;
    Preondition Violations
    Conditional return;
    Conditional return;
    5
    return;
    6
    case Ecore2XMLPackage.ENAMED_ELEMENT_TO_XML_INFO_MAP_ENTRY__VALUE:
    6
    case Ecore2XMLPackage.ENAMED_ELEMENT_TO_XML_INFO_MAP_ENTRY__VALUE:
    6
    case Ecore2XMLPackage.XML_MAP__ECORE_TO_XML_INFO:
    Differences
    Expression1Expression2Difference
    ENAMED_ELEMENT_TO_XML_INFO_MAP_ENTRY__VALUEXML_MAP__ECORE_TO_XML_INFOVARIABLE_NAME_MISMATCH
    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;
    8
    return;
    Preondition Violations
    Conditional return;
    Conditional return;
    8
    return;
    Precondition Violations (4)
    Row Violation
    1Conditional return;
    2Conditional return;
    3Conditional return;
    4Conditional return;