File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EOperationImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EOperationImpl.java | |||
Method name: NotificationChain shadowRemove(EGenericType, NotificationChain)
|
Method name: NotificationChain shadowAdd(EGenericType, NotificationChain)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | ENotificationImpl notification =↵ | 1 | ENotificationImpl notification =↵ | |
2 | new ENotificationImpl↵ | 2 | new ENotificationImpl↵ | |
3 | (owner, Notification.REMOVE, EcorePackage.EOPERATION__EEXCEPTIONS, unwrap(eGenericType), null, indexOf(eGenericType), false);↵ | 3 | (owner, Notification.ADD, EcorePackage.EOPERATION__EEXCEPTIONS, null, unwrap(eGenericType), indexOf(eGenericType), false);↵ | |
4 | if (notifications == null)↵ | 4 | if (notifications == null)↵ | |
5 | {↵ | 5 | {↵ | |
6 | notifications = notification;↵ | 6 | notifications = notification;↵ | |
7 | }↵ | 7 | }↵ | |
8 | else↵ | 8 | else↵ | |
9 | {↵ | 9 | {↵ | |
10 | notifications.add(notification);↵ | 10 | notifications.add(notification);↵ | |
11 | }↵ | 11 | }↵ | |
12 | return notifications; | 12 |
| |
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.2 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 11 |
Number of mapped statements | 5 |
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.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | ENotificationImpl notification = new ENotificationImpl(owner, Notification.REMOVE, EcorePackage.EOPERATION__EEXCEPTIONS, unwrap(eGenericType), null, indexOf(eGenericType), false); |
| 1 | ENotificationImpl notification = new ENotificationImpl(owner, Notification.ADD, EcorePackage.EOPERATION__EEXCEPTIONS, null, unwrap(eGenericType), indexOf(eGenericType), false); | ||||||||||||||||
2 | if (notifications == null) | 2 | if (notifications == null) | |||||||||||||||||
3 | notifications = notification; | 3 | notifications = notification; | |||||||||||||||||
else | else | |||||||||||||||||||
4 | notifications.add(notification); | 4 | notifications.add(notification); | |||||||||||||||||
5 | return notifications; | 5 | return notifications; |
Row | Violation |
---|