File path: /emf-2.4.1/src/org/eclipse/emf/mapping/presentation/MappingEditor.java | File path: /emf-2.4.1/src/org/eclipse/emf/mapping/presentation/MappingEditor.java | |||
Method name: Object getColumnImage(Object, int)
|
Method name: boolean hasDropDownEditor(Object, int)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | Collection<?> secondaryMappedObjectsCollection = getSecondaryMappedObjects(mappingRoot);↵ | 1 | Collection<?> secondaryMappedObjectsCollection = getSecondaryMappedObjects(mappingRoot);↵ | |
2 | if (secondaryMappedObjectsCollection.size() == 1)↵ | 2 | if (secondaryMappedObjectsCollection.size() == 1)↵ | |
3 | {↵ | 3 | ↵ | |
4 | {↵ | |||
4 | secondaryMappedObjectsCollection = mappingDomain.getChildren(secondaryMappedObjectsCollection.iterator().next());↵ | 5 | secondaryMappedObjectsCollection = mappingDomain.getChildren(secondaryMappedObjectsCollection.iterator().next());↵ | |
5 | }↵ | 6 | ↵ | |
7 | }↵ | |||
6 | int count = 0; | 8 | int count = 0; | |
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.3 |
Clones location | Clones are in the same java file |
Number of node comparisons | 10 |
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) | 6967.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
22 | Collection<?> secondaryMappedObjectsCollection = getSecondaryMappedObjects(mappingRoot); | 19 | Collection<?> secondaryMappedObjectsCollection = getSecondaryMappedObjects(mappingRoot); | ||||||||||||||||||||||||
23 | if (secondaryMappedObjectsCollection.size() == 1) |
| 20 | if (secondaryMappedObjectsCollection.size() == 1) | |||||||||||||||||||||||
24 | secondaryMappedObjectsCollection = mappingDomain.getChildren(secondaryMappedObjectsCollection.iterator().next()); |
| 21 | secondaryMappedObjectsCollection = mappingDomain.getChildren(secondaryMappedObjectsCollection.iterator().next()); | |||||||||||||||||||||||
25 | int count = 0; | 22 | int count = 0; |
Row | Violation |
---|---|
1 | Type java.util.Collection<> of variable secondaryMappedObjectsCollection does not match with type java.util.Collection<> of variable secondaryMappedObjectsCollection |
2 | Expression secondaryMappedObjectsCollection.iterator().next() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression secondaryMappedObjectsCollection.iterator().next() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Type of variable secondaryMappedObjectsCollection.iterator().next() does not match with type of variable secondaryMappedObjectsCollection.iterator().next() |
5 | Expression secondaryMappedObjectsCollection.iterator() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression secondaryMappedObjectsCollection.iterator() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Type java.util.Iterator<> of variable secondaryMappedObjectsCollection.iterator() does not match with type java.util.Iterator<> of variable secondaryMappedObjectsCollection.iterator() |
8 | Type java.util.Collection<> of variable secondaryMappedObjectsCollection does not match with type java.util.Collection<> of variable secondaryMappedObjectsCollection |
9 | Clone fragment #1 returns variables secondaryMappedObjectsCollection, count , while Clone fragment #2 returns variables secondaryMappedObjectsCollection, count |