super.unset();
if (isNotificationRequired())
{
boolean oldIsSet = isSet;
isSet = false;
owner.eNotify(createNotification(Notification.UNSET, oldIsSet, false));
}
else
{
isSet = false;
}
super.unset();
if (isNotificationRequired())
{
boolean oldIsSet = isSet;
isSet = false;
owner.eNotify(createNotification(Notification.UNSET, oldIsSet, false));
}
else
{
isSet = false;
}
Clone fragments detected by clone detection tool
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/EObjectEList.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 | boolean oldIsSet = isSet;↵ | | 4 | boolean oldIsSet = isSet;↵
|
5 | isSet = false;↵ | | 5 | isSet = false;↵
|
6 | owner.eNotify(createNotification(Notification.UNSET, oldIsSet, false));↵ | | 6 | owner.eNotify(createNotification(Notification.UNSET, oldIsSet, false));↵
|
7 | }↵ | | 7 | ↵
|
8 | ↵ | | 8 | }↵
|
9 | else↵ | | 9 | else↵
|
10 | {↵ | | 10 | {↵
|
11 | isSet = false;↵ | | 11 | isSet = false;↵
|
12 | } | | 12 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
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 |
-
{Refactorable}
Mapping Summary
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) | 1.2 |
Clone type | Type 1 |
Mapped Statements
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 | | | 4 | |
5 | owner.eNotify(createNotification(Notification.UNSET, oldIsSet, false)); | | 5 | owner.eNotify(createNotification(Notification.UNSET, oldIsSet, false)); |
| | | | |
6 | | | 6 | |
Precondition Violations (0)
Row |
Violation |