for (EAnnotation eAnnotation : eAnnotations)
{
if (eAnnotation.getSource() == null)
{
return eAnnotation;
}
}
for (D descriptor : getModelConverterDescriptors())
{
if (id.equals(descriptor.getID()))
{
return descriptor;
}
}
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EModelElementImpl.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/converter/ui/contribution/ModelConverterManager.java
|
Method name: EAnnotation getEAnnotation(String)
|
|
Method name: D getModelConverterDescriptor(String)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | for (EAnnotation eAnnotation : eAnnotations)↵ | | 1 | for (↵
|
2 | ↵ | | 2 | D descriptor : getModelConverterDescriptors())↵
|
3 | {↵ | | 3 | {↵
|
4 | if (eAnnotation.getSource() == null)↵ | | 4 | if (↵
|
5 | ↵ | | 5 | id.equals(descriptor.getID()))↵
|
6 | {↵ | | 6 | {↵
|
7 | return eAnnotation;↵ | | 7 | return ↵
|
8 | }↵ | | |
|
9 | ↵ | | 8 | descriptor;↵
|
| | | 9 | }↵
|
10 | } | | 10 | }
|
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 |