super.unset();
if (isUnsettable())
{
if (isNotificationRequired())
{
boolean oldIsSet = (kind & IS_SET) != 0;
kind &= ~IS_SET;
dispatchNotification(createNotification(Notification.UNSET, oldIsSet, false));
}
else
{
kind &= ~IS_SET;
}
}
super.unset();
if (isUnsettable())
{
if (isNotificationRequired())
{
boolean oldIsSet = (kind & IS_SET) != 0;
kind &= ~IS_SET;
dispatchNotification(createNotification(Notification.UNSET, oldIsSet, false));
}
else
{
kind &= ~IS_SET;
}
}
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreEList.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: 7
|
|
Number of AST nodes: 7
|
|
1 | super.unset();↵ | | 1 | super.unset();↵
|
2 | if (isUnsettable())↵ | | 2 | if (isUnsettable())↵
|
3 | {↵ | | 3 | {↵
|
4 | if (isNotificationRequired())↵ | | 4 | if (isNotificationRequired())↵
|
5 | {↵ | | 5 | {↵
|
6 | boolean oldIsSet = (kind & IS_SET) != 0;↵ | | 6 | boolean oldIsSet = (kind & IS_SET) != 0;↵
|
7 | kind &= ~IS_SET;↵ | | 7 | kind &= ~IS_SET;↵
|
8 | dispatchNotification(createNotification(Notification.UNSET, oldIsSet, false));↵ | | 8 | dispatchNotification(createNotification(Notification.UNSET, oldIsSet, false));↵
|
9 | }↵ | | 9 | }↵
|
10 | else↵ | | 10 | else↵
|
11 | {↵ | | 11 | {↵
|
12 | kind &= ~IS_SET;↵ | | 12 | kind &= ~IS_SET;↵
|
13 | }↵ | | 13 | }↵
|
14 | } | | 14 | }
|
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 | 27 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 7 |
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.5 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | super.unset(); | | 1 | super.unset(); |
2 | if (isUnsettable()) | | 2 | if (isUnsettable()) |
3 | if (isNotificationRequired()) | | 3 | if (isNotificationRequired()) |
4 | boolean oldIsSet = (kind & IS_SET) != 0; | | 4 | boolean oldIsSet = (kind & IS_SET) != 0; |
5 | | | 5 | |
6 | dispatchNotification(createNotification(Notification.UNSET, oldIsSet, false)); | | 6 | dispatchNotification(createNotification(Notification.UNSET, oldIsSet, false)); |
| | | | |
7 | | | 7 | |
Precondition Violations (0)
Row |
Violation |