NotificationImpl notification =
feature.isMany() ?
createNotification
(Notification.REMOVE,
feature,
value,
null,
indexOf(feature, value),
true) :
createNotification
(feature.isUnsettable() ? Notification.UNSET : Notification.SET,
feature,
value,
feature.getDefaultValue(),
Notification.NO_INDEX,
true);
NotificationImpl notification =
feature.isMany() ?
createNotification
(Notification.REMOVE,
feature,
value,
null,
indexOf(feature, value),
true) :
createNotification
(feature.isUnsettable() ? Notification.UNSET : Notification.SET,
feature,
value,
feature.getDefaultValue(),
Notification.NO_INDEX,
true);
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/BasicFeatureMap.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/DelegatingFeatureMap.java
|
Method name: NotificationChain shadowRemove(FeatureMap.Entry.Internal, NotificationChain)
|
|
Method name: NotificationChain shadowRemove(Entry, NotificationChain)
|
Number of AST nodes: 1
|
|
Number of AST nodes: 1
|
|
1 | NotificationImpl notification = ↵ | | 1 | NotificationImpl notification = ↵
|
2 | feature.isMany() ?↵ | | 2 | feature.isMany() ?↵
|
3 | createNotification↵ | | 3 | createNotification↵
|
4 | (Notification.REMOVE,↵ | | 4 | (Notification.REMOVE,↵
|
5 | feature,↵ | | 5 | feature,↵
|
6 | value,↵ | | 6 | value,↵
|
7 | null, ↵ | | 7 | null, ↵
|
8 | indexOf(feature, value),↵ | | 8 | indexOf(feature, value),↵
|
9 | true) :↵ | | 9 | true) :↵
|
10 | createNotification↵ | | 10 | createNotification↵
|
11 | (feature.isUnsettable() ? Notification.UNSET : Notification.SET, ↵ | | 11 | (feature.isUnsettable() ? Notification.UNSET : Notification.SET, ↵
|
12 | feature,↵ | | 12 | feature,↵
|
13 | value,↵ | | 13 | value,↵
|
14 | feature.getDefaultValue(), ↵ | | 14 | feature.getDefaultValue(), ↵
|
15 | Notification.NO_INDEX,↵ | | 15 | Notification.NO_INDEX,↵
|
16 | true); | | 16 | true);
|
See real code fragment |
|
See real code fragment |
Summary
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 0 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 0 |
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.0 |
Clone type | Unknown type |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
Precondition Violations (0)
Row |
Violation |