File path: /emf-2.4.1/src/org/eclipse/emf/edit/provider/ItemProvider.java | File path: /emf-2.4.1/src/org/eclipse/emf/common/notify/impl/NotificationImpl.java | |||
Method name: void dispatch()
|
Method name: void dispatch()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | Object notifier = getNotifier();↵ | 1 | Object notifier = getNotifier();↵ | |
2 | if (notifier != null && getEventType() != -1)↵ | 2 | if (notifier != null && getEventType() != -1)↵ | |
3 | {↵ | 3 | ↵ | |
4 | ↵ | 4 | {↵ | |
5 | ((IChangeNotifier)notifier).fireNotifyChanged(this);↵ | 5 | ((Notifier)notifier).eNotify(this);↵ | |
6 | }↵ | 6 | }↵ | |
7 | if (next != null)↵ | 7 | if (next != null)↵ | |
8 | {↵ | 8 | {↵ | |
9 | next.dispatch();↵ | 9 | next.dispatch();↵ | |
10 | } | 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.3 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 14 |
Number of mapped statements | 5 |
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 | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Object notifier = getNotifier(); | 1 | Object notifier = getNotifier(); | |||||||||||||||||||||
2 | if (notifier != null && getEventType() != -1) | 2 | if (notifier != null && getEventType() != -1) | |||||||||||||||||||||
3 | ((IChangeNotifier)notifier).fireNotifyChanged(this); |
| 3 | ((Notifier)notifier).eNotify(this); | ||||||||||||||||||||
4 | if (next != null) | 4 | if (next != null) | |||||||||||||||||||||
5 | next.dispatch(); | 5 | next.dispatch(); |
Row | Violation |
---|---|
1 | Expression ((IChangeNotifier)notifier).fireNotifyChanged(this) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression ((Notifier)notifier).eNotify(this) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression ((IChangeNotifier)notifier).fireNotifyChanged(this) is a void method call, and thus it cannot be parameterized |
4 | Expression ((Notifier)notifier).eNotify(this) is a void method call, and thus it cannot be parameterized |
5 | Expression (IChangeNotifier)notifier cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression (Notifier)notifier cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Type org.eclipse.emf.edit.provider.IChangeNotifier of variable (IChangeNotifier)notifier does not match with type org.eclipse.emf.common.notify.Notifier of variable (Notifier)notifier |