File path: /emf-2.4.1/src/org/eclipse/emf/mapping/impl/MappingHelperImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/mapping/impl/MappingImpl.java | |||
Method name: void eSet(int, Object)
|
Method name: void eSet(int, Object)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | case MappingPackage.MAPPING_HELPER__NESTED:↵ | 1 | case MappingPackage.MAPPING__NESTED:↵ | |
2 | getNested().clear();↵ | 2 | getNested().clear();↵ | |
3 | getNested().addAll((Collection<? extends MappingHelper>)newValue);↵ | 3 | getNested().addAll((Collection<? extends Mapping>)newValue);↵ | |
4 | return; | 4 |
| |
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 | 16 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11 | case MappingPackage.MAPPING_HELPER__NESTED: |
| 5 | case MappingPackage.MAPPING__NESTED: | |||||||||||||||||
12 | getNested().clear(); |
| 6 | getNested().clear(); | |||||||||||||||||
13 | getNested().addAll((Collection<?extendsMappingHelper>)newValue); |
| 7 | getNested().addAll((Collection<?extendsMapping>)newValue); | |||||||||||||||||
14 | return; |
| 8 | return; |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.common.util.EList<org.eclipse.emf.mapping.MappingHelper> of variable getNested() does not match with type org.eclipse.emf.common.util.EList<org.eclipse.emf.mapping.Mapping> of variable getNested() |
2 | Type java.util.Collection<? extends org.eclipse.emf.mapping.MappingHelper> of variable Collection does not match with type java.util.Collection<? extends org.eclipse.emf.mapping.Mapping> of variable Collection |
3 | Expression getNested() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression getNested() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Type org.eclipse.emf.common.util.EList<org.eclipse.emf.mapping.MappingHelper> of variable getNested() does not match with type org.eclipse.emf.common.util.EList<org.eclipse.emf.mapping.Mapping> of variable getNested() |
6 | Conditional return; |
7 | Conditional return; |