File path: /emf-2.4.1/src/org/eclipse/emf/mapping/provider/MappingItemProvider.java | File path: /emf-2.4.1/src/org/eclipse/emf/mapping/provider/MappingItemProvider.java | |||
Method name: boolean prepare()
|
Method name: boolean prepare()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | inputs = new ArrayList<EObject>(inputs);↵ | 1 | outputs = new ArrayList<EObject>(outputs);↵ | |
2 | @SuppressWarnings("unchecked")↵ | 2 | @SuppressWarnings("unchecked")↵ | |
3 | Collection<EObject> eObjects = (Collection<EObject>)mappedObjectsCollection;↵ | 3 | Collection<EObject> eObjects = (Collection<EObject>)mappedObjectsCollection;↵ | |
4 | inputs.addAll(eObjects); | 4 | outputs.addAll(eObjects); | |
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 the same method |
Number of node comparisons | 9 |
Number of mapped statements | 3 |
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 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5 | inputs = new ArrayList<EObject>(inputs); |
| 8 | outputs = new ArrayList<EObject>(outputs); | |||||||||||||
6 | @SuppressWarnings("unchecked") Collection<EObject> eObjects = (Collection<EObject>)mappedObjectsCollection; |
| 9 | @SuppressWarnings("unchecked") Collection<EObject> eObjects = (Collection<EObject>)mappedObjectsCollection; | |||||||||||||
7 | inputs.addAll(eObjects); |
| 10 | outputs.addAll(eObjects); |
Row | Violation |
---|---|
1 | Type java.util.Collection<> of variable mappedObjectsCollection does not match with type java.util.Collection<> of variable mappedObjectsCollection |