File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/BasicFeatureMap.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/BasicFeatureMap.java | |||
Method name: boolean containsAll(EStructuralFeature, Collection>)
|
Method name: boolean basicContainsAll(EStructuralFeature, Collection>)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | for (Iterator<?> i = collection.iterator(); i.hasNext(); )↵ | 1 | for (Iterator<?> i = collection.iterator(); i.hasNext(); )↵ | |
2 | {↵ | 2 | {↵ | |
3 | if (!contains(feature, i.next()))↵ | 3 | if (!basicContains(feature, i.next()))↵ | |
4 | {↵ | 4 | {↵ | |
5 | return false;↵ | 5 | return false;↵ | |
6 | }↵ | 6 | }↵ | |
7 | }↵ | 7 | }↵ | |
8 | return true; | 8 |
| |
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 declared in the same class |
Number of node comparisons | 5 |
Number of mapped statements | 2 |
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) | 9.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | if (!contains(feature, i.next())) |
| 2 | if (!basicContains(feature, i.next())) | ||||||||||||||||||
3 | return false; | 3 | return false; |
Row | Violation |
---|---|
1 | Type of variable i.next() does not match with type of variable i.next() |
2 | Type java.util.Iterator<> of variable i does not match with type java.util.Iterator<> of variable i |