Entry otherEntry = delegateGet(j);
if (validator.isValid(otherEntry.getEStructuralFeature()))
{
doSet(j, entry);
include = false;
break;
}
Entry otherEntry = entries[j];
if (validator.isValid(otherEntry.getEStructuralFeature()))
{
doSet(j, entry);
include = false;
break;
}
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/DelegatingFeatureMap.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/BasicFeatureMap.java
|
Method name: boolean addAll(int, Collection extends Entry>)
|
|
Method name: boolean addAll(int, Collection extends Entry>)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 5
|
|
1 | Entry otherEntry = delegateGet(j);↵ | | 1 | Entry otherEntry = entries[j];↵
|
2 | if (validator.isValid(otherEntry.getEStructuralFeature()))↵ | | 2 | if (validator.isValid(otherEntry.getEStructuralFeature()))↵
|
3 | {↵ | | 3 | {↵
|
4 | doSet(j, entry);↵ | | 4 | doSet(j, entry);↵
|
5 | include = false;↵ | | 5 | include = false;↵
|
6 | break;↵ | | 6 | break;↵
|
7 | } | | 7 | }
|
See real code fragment |
|
See real code fragment |
Summary
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.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 21 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 5 |
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) | 1.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
10 | Entry otherEntry = delegateGet(j); | | 11 | Entry otherEntry = entries[j]; |
11 | if (validator.isValid(otherEntry.getEStructuralFeature())) | | 12 | if (validator.isValid(otherEntry.getEStructuralFeature())) |
12 | | | 13 | |
13 | | | 14 | |
14 | | | 15 | |
Precondition Violations (2)
Row |
Violation |
1 | Statement break; without innermost loop |
2 | Statement break; without innermost loop |