File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EClassImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EReferenceImpl.java | |||
Method name: void eSet(int, Object)
|
Method name: void eSet(int, Object)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | case EcorePackage.ECLASS__EANNOTATIONS:↵ | 1 | case EcorePackage.EREFERENCE__EANNOTATIONS:↵ | |
2 | getEAnnotations().clear();↵ | 2 | getEAnnotations().clear();↵ | |
3 | getEAnnotations().addAll((Collection<? extends EAnnotation>)newValue);↵ | 3 | getEAnnotations().addAll((Collection<? extends EAnnotation>)newValue);↵ | |
4 | return;↵ | 4 | return;↵ | |
5 | case EcorePackage.ECLASS__NAME:↵ | 5 | case EcorePackage.EREFERENCE__NAME:↵ | |
6 | setName((String)newValue);↵ | 6 | setName((String)newValue);↵ | |
7 | return; | 7 |
| |
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 37 |
Number of mapped statements | 7 |
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 | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | case EcorePackage.ECLASS__EANNOTATIONS: |
| 2 | case EcorePackage.EREFERENCE__EANNOTATIONS: | ||||||||||
3 | getEAnnotations().clear(); | 3 | getEAnnotations().clear(); | |||||||||||
4 | getEAnnotations().addAll((Collection<?extendsEAnnotation>)newValue); | 4 | getEAnnotations().addAll((Collection<?extendsEAnnotation>)newValue); | |||||||||||
5 | return; |
| 5 | return; | ||||||||||
6 | case EcorePackage.ECLASS__NAME: |
| 6 | case EcorePackage.EREFERENCE__NAME: | ||||||||||
7 | setName((String)newValue); | 7 | setName((String)newValue); | |||||||||||
8 | return; |
| 8 | return; |
Row | Violation |
---|---|
1 | Conditional return; |
2 | Conditional return; |
3 | Conditional return; |
4 | Conditional return; |