File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/ETypeParameterImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/ETypeParameterImpl.java | |||
Method name: NotificationChain inverseAdd(EGenericType, NotificationChain)
|
Method name: NotificationChain inverseRemove(EGenericType, NotificationChain)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | notifications = super.inverseAdd(object, notifications);↵ | 1 | notifications = super.inverseRemove(object, notifications);↵ | |
2 | synchronized (ETypeParameterImpl.this)↵ | 2 | synchronized (ETypeParameterImpl.this)↵ | |
3 | {↵ | 3 | {↵ | |
4 | @SuppressWarnings("unchecked") ↵ | 4 | @SuppressWarnings("unchecked") ↵ | |
5 | Set<EGenericTypeImpl> eGenericTypes = (Set<EGenericTypeImpl>)(Set<?>)getEGenericTypes();↵ | 5 | Set<EGenericTypeImpl> eGenericTypes = (Set<EGenericTypeImpl>)(Set<?>)getEGenericTypes();↵ | |
6 | for (EGenericTypeImpl eGenericType : eGenericTypes)↵ | 6 | for (EGenericTypeImpl eGenericType : eGenericTypes)↵ | |
7 | {↵ | 7 | {↵ | |
8 | notifications = eGenericType.setERawType(eGenericType.getErasure(ETypeParameterImpl.this), notifications);↵ | 8 | notifications = eGenericType.setERawType(eGenericType.getErasure(ETypeParameterImpl.this), notifications);↵ | |
9 | }↵ | 9 | }↵ | |
10 | }↵ | 10 | } ↵ | |
11 | return notifications; | 11 |
| |
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) | 1.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 12 |
Number of mapped statements | 6 |
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.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | notifications = super.inverseAdd(object, notifications); |
| 1 | notifications = super.inverseRemove(object, notifications); | ||||||||||
2 | synchronized (ETypeParameterImpl.this) | 2 | synchronized (ETypeParameterImpl.this) | |||||||||||
3 | @SuppressWarnings("unchecked") Set<EGenericTypeImpl> eGenericTypes = (Set<EGenericTypeImpl>)(Set<?>)getEGenericTypes(); | 3 | @SuppressWarnings("unchecked") Set<EGenericTypeImpl> eGenericTypes = (Set<EGenericTypeImpl>)(Set<?>)getEGenericTypes(); | |||||||||||
4 | for (EGenericTypeImpl eGenericType : eGenericTypes) | 4 | for (EGenericTypeImpl eGenericType : eGenericTypes) | |||||||||||
5 | notifications = eGenericType.setERawType(eGenericType.getErasure(ETypeParameterImpl.this), notifications); | 5 | notifications = eGenericType.setERawType(eGenericType.getErasure(ETypeParameterImpl.this), notifications); | |||||||||||
6 | return notifications; | 6 | return notifications; |
Row | Violation |
---|