EStructuralFeature.Setting setting = j.next();
EStructuralFeature eStructuralFeature = setting.getEStructuralFeature();
out.print(" ");
out.print(eStructuralFeature.getName());
out.print("<-");
out.print(getIdentification(setting.getEObject()));
if (j.hasNext())
{
out.println(",");
}
EStructuralFeature.Setting setting = j.next();
EStructuralFeature eStructuralFeature = setting.getEStructuralFeature();
out.print(" ");
out.print(eStructuralFeature.getName());
out.print("<-");
out.print(getIdentification(setting.getEObject()));
if (j.hasNext())
{
out.println(",");
}
Clone fragments detected by clone detection tool
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: void print(PrintStream, Collection)
|
Number of AST nodes: 8
|
|
Number of AST nodes: 8
|
|
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 | out.print(" ");↵
|
4 | out.print(eStructuralFeature.getName());↵ | | 4 | out.print(eStructuralFeature.getName());↵
|
5 | out.print("<-");↵ | | 5 | out.print("<-");↵
|
6 | out.print(getIdentification(setting.getEObject()));↵ | | 6 | out.print(getIdentification(setting.getEObject()));↵
|
7 | if (j.hasNext())↵ | | 7 | if (j.hasNext())↵
|
8 | {↵ | | 8 | {↵
|
9 | out.println(",");↵ | | 9 | out.println(",");↵
|
10 | } | | 10 | }
|
See real code fragment |
|
See real code fragment |
Summary
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.3 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 42 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 8 |
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) | 10.3 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
11 | EStructuralFeature.Setting setting = j.next(); | | 5 | EStructuralFeature.Setting setting = j.next(); |
12 | EStructuralFeature eStructuralFeature = setting.getEStructuralFeature(); | | 6 | EStructuralFeature eStructuralFeature = setting.getEStructuralFeature(); |
13 | out.print(" "); | | 7 | out.print(" "); |
14 | out.print(eStructuralFeature.getName()); | | 8 | out.print(eStructuralFeature.getName()); |
15 | out.print("<-"); | | 9 | out.print("<-"); |
16 | out.print(getIdentification(setting.getEObject())); | | 10 | out.print(getIdentification(setting.getEObject())); |
17 | if (j.hasNext()) | | 11 | if (j.hasNext()) |
18 | | | 12 | |
Precondition Violations (0)
Row |
Violation |