File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreEMap.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/DelegatingEcoreEList.java | |||
Method name: void unset()
|
Method name: void unset()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | super.unset();↵ | 1 | super.unset();↵ | |
2 | if (isNotificationRequired())↵ | 2 | if (isNotificationRequired())↵ | |
3 | {↵ | 3 | ↵ | |
4 | ↵ | 4 | {↵ | |
5 | boolean oldIsSet = isSet;↵ | 5 | boolean oldIsSet = isSet;↵ | |
6 | isSet = false;↵ | 6 | isSet = false;↵ | |
7 | owner.eNotify(createNotification(Notification.UNSET, oldIsSet, false));↵ | 7 | dispatchNotification(createNotification(Notification.UNSET, oldIsSet, false));↵ | |
8 | }↵ | 8 | ↵ | |
9 | ↵ | 9 | }↵ | |
10 | else↵ | 10 | else↵ | |
11 | {↵ | 11 | {↵ | |
12 | isSet = false;↵ | 12 | isSet = false;↵ | |
13 | } | 13 |
| |
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.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 26 |
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) | 17.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super.unset(); | 1 | super.unset(); | ||||||||||||||||||||||
2 | if (isNotificationRequired()) | 2 | if (isNotificationRequired()) | ||||||||||||||||||||||
3 | boolean oldIsSet = isSet; | 3 | boolean oldIsSet = isSet; | ||||||||||||||||||||||
4 | isSet = false; | 4 | isSet = false; | ||||||||||||||||||||||
5 | owner.eNotify(createNotification(Notification.UNSET, oldIsSet, false)); |
| 5 | dispatchNotification(createNotification(Notification.UNSET, oldIsSet, false)); | |||||||||||||||||||||
else | else | ||||||||||||||||||||||||
6 | isSet = false; | 6 | isSet = false; |
Row | Violation |
---|---|
1 | Expression owner.eNotify(createNotification(Notification.UNSET,oldIsSet,false)) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression dispatchNotification(createNotification(Notification.UNSET,oldIsSet,false)) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression owner.eNotify(createNotification(Notification.UNSET,oldIsSet,false)) is a void method call, and thus it cannot be parameterized |
4 | Expression dispatchNotification(createNotification(Notification.UNSET,oldIsSet,false)) is a void method call, and thus it cannot be parameterized |
5 | Expression owner.eNotify(createNotification(Notification.UNSET,oldIsSet,false)) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression dispatchNotification(createNotification(Notification.UNSET,oldIsSet,false)) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression owner.eNotify(createNotification(Notification.UNSET,oldIsSet,false)) is a void method call, and thus it cannot be parameterized |
8 | Expression dispatchNotification(createNotification(Notification.UNSET,oldIsSet,false)) is a void method call, and thus it cannot be parameterized |