if (eStructuralFeature instanceof EReference)
{
EReference eReference = (EReference)eStructuralFeature;
return !eReference.isContainment() && !eReference.isContainer();
}
else
{
return false;
}
if (that instanceof Entry)
{
Entry entry = (Entry)that;
return eObject == entry.eObject && eStructuralFeature == entry.eStructuralFeature;
}
else
{
return false;
}
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/ECrossReferenceEList.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EStoreEObjectImpl.java
|
Method name: boolean isIncludedEntry(EStructuralFeature)
|
|
Method name: boolean equals(Object)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if (eStructuralFeature instanceof EReference)↵ | | 1 | if (that instanceof E↵
|
| | | 2 | ntry)↵
|
2 | {↵ | | 3 | {↵
|
3 | EReference eReference = (EReference)eStructuralFeature;↵ | | 4 | ↵
|
| | | 5 | Entry entry = (Entry)that;↵
|
4 | return !eReference.isContainment() && !eReference.isContainer();↵ | | 6 | return ↵
|
5 | }↵ | | |
|
| | | 7 | eObject == entry.eObject && eStructuralFeature == entry.eStructuralFeature;↵
|
| | | 8 | }↵
|
6 | else↵ | | 9 | else↵
|
7 | {↵ | | 10 | ↵
|
| | | 11 | {↵
|
8 | return false;↵ | | 12 | return false;↵
|
9 | } | | 13 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |