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 shadowAdd(FeatureMap.Entry.Internal, NotificationChain)
|
Method name: NotificationChain shadowAdd(Entry, NotificationChain)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | NotificationImpl notification = ↵ | 1 | NotificationImpl notification = ↵ | |
2 | feature.isMany() ?↵ | 2 | feature.isMany() ?↵ | |
3 | createNotification↵ | 3 | createNotification↵ | |
4 | (Notification.ADD,↵ | 4 | (Notification.ADD,↵ | |
5 | feature,↵ | 5 | feature,↵ | |
6 | null, ↵ | 6 | null, ↵ | |
7 | value,↵ | 7 | value,↵ | |
8 | indexOf(feature, value),↵ | 8 | indexOf(feature, value),↵ | |
9 | true) :↵ | 9 | true) :↵ | |
10 | createNotification↵ | 10 | createNotification↵ | |
11 | (Notification.SET, ↵ | 11 | (Notification.SET, ↵ | |
12 | feature,↵ | 12 | feature,↵ | |
13 | feature.getDefaultValue(), ↵ | 13 | feature.getDefaultValue(), ↵ | |
14 | value,↵ | 14 | value,↵ | |
15 | Notification.NO_INDEX,↵ | 15 | Notification.NO_INDEX,↵ | |
16 | true);↵ | 16 | true);↵ | |
17 | ↵ | 17 | ↵ | |
18 | if (notifications != null)↵ | 18 | if (notifications != null)↵ | |
19 | {↵ | 19 | {↵ | |
20 | notifications.add(notification);↵ | 20 | notifications.add(notification);↵ | |
21 | }↵ | 21 | ↵ | |
22 | }↵ | |||
22 | else↵ | 23 | else↵ | |
23 | {↵ | 24 | {↵ | |
24 | notifications = notification;↵ | 25 | notifications = notification;↵ | |
25 | } | 26 | } | |
See real code fragment | See real code fragment |
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 | 10 |
Number of mapped statements | 4 |
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.6 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
3 | NotificationImpl notification = feature.isMany() ? createNotification(Notification.ADD, feature, null, value, indexOf(feature, value), true) : createNotification(Notification.SET, feature, feature.getDefaultValue(), value, Notification.NO_INDEX, true); | 4 | NotificationImpl notification = feature.isMany() ? createNotification(Notification.ADD, feature, null, value, indexOf(feature, value), true) : createNotification(Notification.SET, feature, feature.getDefaultValue(), value, Notification.NO_INDEX, true); | |
4 | if (notifications != null) | 5 | if (notifications != null) | |
5 | notifications.add(notification); | 6 | notifications.add(notification); | |
else | else | |||
6 | notifications = notification; | 7 | notifications = notification; |
Row | Violation |
---|