File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLSaveImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLSaveImpl.java | |||
Method name: void saveHRefMany(EObject, EStructuralFeature)
|
Method name: void saveElementReferenceMany(EObject, EStructuralFeature)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | @SuppressWarnings("unchecked") InternalEList<? extends EObject> values = (InternalEList<? extends EObject>)helper.getValue(o, f);↵ | 1 | @SuppressWarnings("unchecked") InternalEList<? extends EObject> values = (InternalEList<? extends EObject>)helper.getValue(o, f);↵ | |
2 | int size = values.size();↵ | 2 | int size = values.size();↵ | |
3 | for (int i = 0; i < size; i++)↵ | 3 | for (int i = 0; i < size; i++)↵ | |
4 | {↵ | 4 | {↵ | |
5 | saveHref(values.basicGet(i), f);↵ | 5 | saveElementReference(values.basicGet(i), f);↵ | |
6 | } | 6 |
| |
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 declared in the same class |
Number of node comparisons | 8 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 6801.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | @SuppressWarnings("unchecked") InternalEList<?extendsEObject> values = (InternalEList<?extendsEObject>)helper.getValue(o, f); | ||||||||||||||||||||||||||
1 | @SuppressWarnings("unchecked") InternalEList<?extendsEObject> values = (InternalEList<?extendsEObject>)helper.getValue(o, f); | | ||||||||||||||||||||||||||
2 | int size = values.size(); |
| 2 | int size = values.size(); | ||||||||||||||||||||||||
3 | for (int i = 0; i < size; i++) | 3 | for (int i = 0; i < size; i++) | |||||||||||||||||||||||||
4 | saveHref(values.basicGet(i), f); |
| 4 | saveElementReference(values.basicGet(i), f); |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.ecore.util.InternalEList<> of variable values does not match with type org.eclipse.emf.ecore.util.InternalEList<> of variable values |
2 | Expression saveHref(values.basicGet(i),f) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression saveElementReference(values.basicGet(i),f) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression saveHref(values.basicGet(i),f) is a void method call, and thus it cannot be parameterized |
5 | Expression saveElementReference(values.basicGet(i),f) is a void method call, and thus it cannot be parameterized |
6 | Expression values.basicGet(i) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression values.basicGet(i) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Type of variable values.basicGet(i) does not match with type of variable values.basicGet(i) |
9 | Type org.eclipse.emf.ecore.util.InternalEList<> of variable values does not match with type org.eclipse.emf.ecore.util.InternalEList<> of variable values |