EObject notifier = (EObject)notification.getNotifier(); EReference feature = (EReference)notification.getFeature(); for (Object oldValue : (Collection<?>)notification.getOldValue()) { inverseCrossReferencer.remove(notifier, feature, (EObject)oldValue); } break;
EObject notifier = (EObject)notification.getNotifier(); EReference feature = (EReference)notification.getFeature(); for (Object newValue : (Collection<?>)notification.getNewValue()) { inverseCrossReferencer.add(notifier, feature, (EObject)newValue); } break;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/ECrossReferenceAdapter.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/ECrossReferenceAdapter.java
Method name: void handleCrossReference(EReference, Notification) Method name: void handleCrossReference(EReference, Notification)
Number of AST nodes: 5 Number of AST nodes: 5
1
EObject notifier = (EObject)notification.getNotifier();
1
EObject notifier = (EObject)notification.getNotifier();
2
        EReference feature = (EReference)notification.getFeature();
2
        EReference feature = (EReference)notification.getFeature();
3
        for (Object oldValue : (Collection<?>)notification.getOldValue())
3
        for (Object newValue : (Collection<?>)notification.getNewValue())
4
        {
4
        {
5
          inverseCrossReferencer.remove(notifier, feature, (EObject)oldValue);
5
          inverseCrossReferencer.add(notifier, feature, (EObject)newValue);
6
        }
6
        }
7
        break;
7
        break;
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.2
Clones locationClones are in the same method
Number of node comparisons1