File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreUtil.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreUtil.java | |||
Method name: void print(PrintStream, Collection
|
Method name: void print(PrintStream, Map
|
|||
Number of AST nodes: 11 | Number of AST nodes: 11 | |||
1 | out.println("[");↵ | 1 | out.println(" =[");↵ | |
2 | for (Iterator<EStructuralFeature.Setting> j = settings.iterator(); j.hasNext();)↵ | 2 | for (Iterator<EStructuralFeature.Setting> j = collection.iterator(); j.hasNext();)↵ | |
3 | {↵ | 3 | {↵ | |
4 | EStructuralFeature.Setting setting = j.next();↵ | 4 | EStructuralFeature.Setting setting = j.next();↵ | |
5 | EStructuralFeature eStructuralFeature = setting.getEStructuralFeature();↵ | 5 | EStructuralFeature eStructuralFeature = setting.getEStructuralFeature();↵ | |
6 | out.print(" ");↵ | 6 | out.print(" ");↵ | |
7 | out.print(eStructuralFeature.getName());↵ | 7 | out.print(eStructuralFeature.getName());↵ | |
8 | out.print("<-");↵ | 8 | out.print("<-");↵ | |
9 | out.print(getIdentification(setting.getEObject()));↵ | 9 | out.print(getIdentification(setting.getEObject()));↵ | |
10 | if (j.hasNext())↵ | 10 | if (j.hasNext())↵ | |
11 | {↵ | 11 | ↵ | |
12 | {↵ | |||
12 | out.println(",");↵ | 13 | out.println(",");↵ | |
13 | }↵ | 14 | ↵ | |
15 | }↵ | |||
14 | }↵ | 16 | }↵ | |
15 | out.println(']'); | 17 | out.println(']'); | |
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.4 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 59 |
Number of mapped statements | 11 |
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) | 18.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | out.println("["); |
| 9 | out.println(" =["); | ||||||||||
4 | for (Iterator<EStructuralFeature.Setting> j = settings.iterator(); j.hasNext(); ) |
| 10 | for (Iterator<EStructuralFeature.Setting> j = collection.iterator(); j.hasNext(); ) | ||||||||||
5 | EStructuralFeature.Setting setting = j.next(); | 11 | EStructuralFeature.Setting setting = j.next(); | |||||||||||
6 | EStructuralFeature eStructuralFeature = setting.getEStructuralFeature(); | 12 | EStructuralFeature eStructuralFeature = setting.getEStructuralFeature(); | |||||||||||
7 | out.print(" "); |
| 13 | out.print(" "); | ||||||||||
8 | out.print(eStructuralFeature.getName()); | 14 | out.print(eStructuralFeature.getName()); | |||||||||||
9 | out.print("<-"); | 15 | out.print("<-"); | |||||||||||
10 | out.print(getIdentification(setting.getEObject())); | 16 | out.print(getIdentification(setting.getEObject())); | |||||||||||
11 | if (j.hasNext()) | 17 | if (j.hasNext()) | |||||||||||
12 | out.println(","); | 18 | out.println(","); | |||||||||||
13 | out.println(']'); | 19 | out.println(']'); |
Row | Violation |
---|