EObject notifier = (EObject)notification.getNotifier();
EReference feature = (EReference)notification.getFeature();
for (Object newValue : (Collection<?>)notification.getNewValue())
{
inverseCrossReferencer.add(notifier, feature, (EObject)newValue);
}
break;
EObject notifier = (EObject)notification.getNotifier();
EReference feature = (EReference)notification.getFeature();
for (Object oldValue : (Collection<?>)notification.getOldValue())
{
inverseCrossReferencer.remove(notifier, feature, (EObject)oldValue);
}
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 newValue : (Collection<?>)notification.getNewValue())↵ | | 3 | for (Object oldValue : (Collection<?>)notification.getOldValue())↵
|
4 | {↵ | | 4 | {↵
|
5 | inverseCrossReferencer.add(notifier, feature, (EObject)newValue);↵ | | 5 | inverseCrossReferencer.remove(notifier, feature, (EObject)oldValue);↵
|
6 | }↵ | | 6 | }↵
|
7 | break; | | 7 | break;
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 1 |