if (that instanceof URLImageDescriptor)
{
URLImageDescriptor otherURLImageDescriptor = (URLImageDescriptor)that;
return
url.equals(otherURLImageDescriptor.url) &&
(key1 == null ? otherURLImageDescriptor.key1 == null : key1.equals(otherURLImageDescriptor.key1)) &&
(key2 == null ? otherURLImageDescriptor.key2 == null : key2.equals(otherURLImageDescriptor.key2));
}
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/edit/ui/provider/ExtendedImageRegistry.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EStoreEObjectImpl.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 URLImageDescriptor)↵ | | 1 | if (that instanceof ↵
|
2 | {↵ | | |
|
3 | URLImageDescriptor otherURLImageDescriptor = (URLImageDescriptor↵ | | 2 | Entry)↵
|
| | | 3 | {↵
|
4 | )that;↵ | | 4 | Entry entry = (Entry)that;↵
|
5 | return ↵ | | 5 | return ↵
|
6 | url.equals(otherURLImageDescriptor.url) &&↵ | | |
|
7 | (key1 == null ? otherURLImageDescriptor.key1 == null : key1.equals(otherURLImageDescriptor.key1)) &&↵ | | |
|
8 | (key2 == null ? otherURLImageDescriptor.key2 == null : key2.equals(otherURLImageDescriptor.key2));↵ | | 6 | eObject == entry.eObject && eStructuralFeature == entry.eStructuralFeature;↵
|
| | | 7 | }↵
|
| | | 8 | else↵
|
9 | }↵ | | 9 | ↵
|
10 | else↵ | | 10 | {↵
|
11 | {↵ | | 11 | ↵
|
12 | return false;↵ | | 12 | return false;↵
|
13 | } | | 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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |