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, Map
|
Method name: String toString()
|
|||
Number of AST nodes: 8 | Number of AST nodes: 7 | |||
1 | EStructuralFeature.Setting setting = j.next();↵ | 1 | EStructuralFeature.Setting setting = j.next();↵ | |
2 | EStructuralFeature eStructuralFeature = setting.getEStructuralFeature();↵ | 2 | EStructuralFeature eStructuralFeature = setting.getEStructuralFeature();↵ | |
3 | out.print(" ");↵ | 3 | ↵ | |
4 | out.print(eStructuralFeature.getName());↵ | 4 | result.append(eStructuralFeature.getName());↵ | |
5 | out.print("<-");↵ | 5 | result.append("<-");↵ | |
6 | out.print(getIdentification(setting.getEObject()));↵ | 6 | result.append(getIdentification(setting.getEObject()));↵ | |
7 | if (j.hasNext())↵ | 7 | if (j.hasNext())↵ | |
8 | {↵ | 8 | {↵ | |
9 | out.println(",");↵ | 9 | result.append(", ");↵ | |
10 | } | 10 |
| |
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 | 37 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 5 |
Number of unmapped statements in the second code fragment | 4 |
Time elapsed for statement mapping (ms) | 10.2 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||
---|---|---|---|---|---|---|---|
11 | EStructuralFeature.Setting setting = j.next(); | 8 | EStructuralFeature.Setting setting = j.next(); | ||||
12 | EStructuralFeature eStructuralFeature = setting.getEStructuralFeature(); | 9 | EStructuralFeature eStructuralFeature = setting.getEStructuralFeature(); | ||||
|
| 10 | result.append(eStructuralFeature.getName()); | ||||
| 11 | result.append("<-"); | |||||
|
| 12 | result.append(getIdentification(setting.getEObject())); | ||||
13 | out.print(" "); | | |||||
14 | out.print(eStructuralFeature.getName()); |
| | ||||
15 | out.print("<-"); | | |||||
16 | out.print(getIdentification(setting.getEObject())); |
| | ||||
17 | if (j.hasNext()) | 13 | if (j.hasNext()) | ||||
| 14 | result.append(", "); | |||||
18 | out.println(","); | |
Row | Violation |
---|---|
1 | Unmatched statement result.append(eStructuralFeature.getName()); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement result.append(getIdentification(setting.getEObject())); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | Unmatched statement out.print(eStructuralFeature.getName()); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
4 | Unmatched statement out.print(getIdentification(setting.getEObject())); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
5 | Clone fragment #1 returns variables eStructuralFeature, setting , while Clone fragment #2 returns variables eStructuralFeature, setting |