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 |
| |
See real code fragment | See real code fragment |
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.5 |
Clones location | Clones are in the same method |
Number of node comparisons | 13 |
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.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5 | fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); |
| 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; |
| 19 | return; |
Row | Violation |
---|---|
1 | Conditional return; |
2 | Conditional return; |