File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EGenericTypeImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EFactoryImpl.java | |||
Method name: NotificationChain basicSetELowerBound(EGenericType, NotificationChain)
|
Method name: NotificationChain basicSetEPackage(EPackage, NotificationChain)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | EGenericType oldELowerBound = eLowerBound;↵ | 1 | E↵ | |
2 | eLowerBound = newELowerBound↵ | 2 | Package oldEPackage = ePackage;↵ | |
3 | ;↵ | 3 | ePackage = newEPackage;↵ | |
4 | if (eNotificationRequired())↵ | 4 | if (eNotificationRequired())↵ | |
5 | {↵ | 5 | {↵ | |
6 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EcorePackage.EGENERIC_TYPE__ELOWER_BOUND, oldELowerBound, newELowerBound);↵ | 6 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EcorePackage.EFACTORY__EPACKAGE, oldEPackage, newEPackage);↵ | |
7 | if (msgs == null) msgs = notification; else msgs.add(notification);↵ | 7 | if (msgs == null) msgs = notification; else msgs.add(notification);↵ | |
8 | }↵ | 8 | }↵ | |
9 | return msgs; | 9 |
| |
See real code fragment | See real code fragment |
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.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 22 |
Number of mapped statements | 6 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 1.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | EPackage oldEPackage = ePackage; | |||||||||||||||||||
1 | EGenericType oldELowerBound = eLowerBound; | | |||||||||||||||||||
| 2 | ePackage = newEPackage; | |||||||||||||||||||
2 | eLowerBound = newELowerBound; | | |||||||||||||||||||
3 | if (eNotificationRequired()) | 3 | if (eNotificationRequired()) | ||||||||||||||||||
4 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EcorePackage.EGENERIC_TYPE__ELOWER_BOUND, oldELowerBound, newELowerBound); |
| 4 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EcorePackage.EFACTORY__EPACKAGE, oldEPackage, newEPackage); | |||||||||||||||||
5 | if (msgs == null) | 5 | if (msgs == null) | ||||||||||||||||||
6 | msgs = notification; | 6 | msgs = notification; | ||||||||||||||||||
else | else | ||||||||||||||||||||
7 | msgs.add(notification); | 7 | msgs.add(notification); | ||||||||||||||||||
8 | return msgs; | 8 | return msgs; |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.ecore.EGenericType of variable oldELowerBound does not match with type org.eclipse.emf.ecore.EPackage of variable oldEPackage |