if (that instanceof Entry)
{
Entry entry = (Entry)that;
return eObject == entry.eObject && eStructuralFeature == entry.eStructuralFeature;
}
else
{
return false;
}
if (object instanceof MappingIndicatorCompositeImage)
{
MappingIndicatorCompositeImage that = (MappingIndicatorCompositeImage)object;
return that.mainImage == mainImage && that.overlayImage == overlayImage;
}
else
{
return false;
}
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EStoreEObjectImpl.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/mapping/presentation/MappingDomainLabelProvider.java
|
Method name: boolean equals(Object)
|
|
Method name: boolean equals(Object)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if (that instanceof Entry)↵ | | 1 | if (object instanceof ↵
|
2 | ↵ | | 2 | MappingIndicatorCompositeImage)↵
|
3 | {↵ | | 3 | {↵
|
4 | Entry entry = (Entry)that;↵ | | 4 | MappingIndicatorCompositeImage that = (MappingIndicatorCompositeImage)object;↵
|
5 | return eObject == entry.eObject && eStructuralFeature == entry.eStructuralFeature;↵ | | 5 | return that.mainImage == mainImage && that.overlayImage == overlayImage;↵
|
6 | }↵ | | 6 | ↵
|
7 | ↵ | | 7 | }↵
|
8 | else↵ | | 8 | else↵
|
9 | {↵ | | 9 | ↵
|
10 | ↵ | | 10 | {↵
|
11 | return false;↵ | | 11 | return false;↵
|
12 | } | | 12 | }
|
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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |