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 addAll(int, EStructuralFeature, Collection>)
|
Method name: boolean addAll(EStructuralFeature, Collection>)
|
|||
Number of AST nodes: 10 | Number of AST nodes: 10 | |||
1 | if (feature.isUnique())↵ | 1 | if (feature.isUnique())↵ | |
2 | {↵ | 2 | {↵ | |
3 | for (Object object : collection)↵ | 3 | for (Object object : collection)↵ | |
4 | {↵ | 4 | {↵ | |
5 | if (!contains(feature, object))↵ | 5 | if (!contains(feature, object))↵ | |
6 | {↵ | 6 | {↵ | |
7 | Entry entry = createEntry(feature, object);↵ | 7 | Entry entry = createEntry(feature, object);↵ | |
8 | if (!entryCollection.contains(entry))↵ | 8 | if (!entryCollection.contains(entry))↵ | |
9 | {↵ | 9 | {↵ | |
10 | entryCollection.add(entry);↵ | 10 | entryCollection.add(entry);↵ | |
11 | }↵ | 11 | }↵ | |
12 | }↵ | 12 | }↵ | |
13 | }↵ | 13 | }↵ | |
14 | }↵ | 14 | }↵ | |
15 | else if (!isFeatureMap)↵ | 15 | else if (!isFeatureMap)↵ | |
16 | {↵ | 16 | {↵ | |
17 | for (Object object : collection)↵ | 17 | for (Object object : collection)↵ | |
18 | {↵ | 18 | {↵ | |
19 | Entry entry = createEntry(feature, object);↵ | 19 | Entry entry = createEntry(feature, object);↵ | |
20 | entryCollection.add(entry);↵ | 20 | entryCollection.add(entry);↵ | |
21 | }↵ | 21 | }↵ | |
22 | } | 22 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.5 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 12 |
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) | 4.0 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
8 | if (!contains(feature, object)) | 8 | if (!contains(feature, object)) | |
9 | Entry entry = createEntry(feature, object); | 9 | Entry entry = createEntry(feature, object); | |
10 | if (!entryCollection.contains(entry)) | 10 | if (!entryCollection.contains(entry)) | |
11 | entryCollection.add(entry); | 11 | entryCollection.add(entry); |
Row | Violation |
---|