fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); for (EObject container = ((EObject)notification.getNotifier()).eContainer(); container != null; container = container.eContainer()) { fireNotifyChanged(new ViewerNotification(notification, container, false, true)); if (container instanceof EOperation || container instanceof EStructuralFeature || container instanceof EClassifier) { break; } } return;
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, true)); for (EObject container = ((EObject)notification.getNotifier()).eContainer(); container != null; container = container.eContainer()) { fireNotifyChanged(new ViewerNotification(notification, container, false, true)); if (container instanceof EOperation || container instanceof EStructuralFeature || container instanceof EClassifier) { break; } } return;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/provider/EGenericTypeItemProvider.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/provider/EGenericTypeItemProvider.java
Method name: void notifyChanged(Notification) Method name: void notifyChanged(Notification)
Number of AST nodes: 6 Number of AST nodes: 6
1
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
1
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, true));
2
        for (EObject container = ((EObject)notification.getNotifier()).eContainer(); container != null; container = container.eContainer())
2
        for (EObject container = ((EObject)notification.getNotifier()).eContainer(); container != null; container = container.eContainer())
3
        {
3
        {
4
          fireNotifyChanged(new ViewerNotification(notification, container, false, true));
4
          fireNotifyChanged(new ViewerNotification(notification, container, false, true));
5
          if (container instanceof EOperation || container instanceof EStructuralFeature || container instanceof EClassifier)
5
          if (container instanceof EOperation || container instanceof EStructuralFeature || container instanceof EClassifier)
6
          { 
6
          { 
7
            break;
7
            break;
8
          }
8
          }
9
        }
9
        }
10
        return;
10
        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.5
Clones locationClones are in the same method
Number of node comparisons13
  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.7
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    5
    fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
    5
    fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
    14
    fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, true));
    Differences
    Expression1Expression2Difference
    falsetrueLITERAL_VALUE_MISMATCH
    14
    fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, true));
    6
    for (EObject container = ((EObject)notification.getNotifier()).eContainer(); container != null; container = container.eContainer())
    15
    for (EObject container = ((EObject)notification.getNotifier()).eContainer(); container != null; container = container.eContainer())
    7
    fireNotifyChanged(new ViewerNotification(notification, container, false, true));
    16
    fireNotifyChanged(new ViewerNotification(notification, container, false, true));
    8
    if (container instanceof EOperation || container instanceof EStructuralFeature || container instanceof EClassifier)
    17
    if (container instanceof EOperation || container instanceof EStructuralFeature || container instanceof EClassifier)
    9
    break;
    18
    break;
    10
    return;
    10
    return;
    19
    return;
    Preondition Violations
    Conditional return;
    Conditional return;
    19
    return;
    Precondition Violations (2)
    Row Violation
    1Conditional return;
    2Conditional return;