for (EAnnotation eAnnotation : eAnnotations)
{
if (source.equals(eAnnotation.getSource()))
{
return eAnnotation;
}
}
for (EEnumLiteral eEnumLiteral : getELiterals())
{
if (eEnumLiteral.getName() == null)
{
return eEnumLiteral;
}
}
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/ecore/impl/EEnumImpl.java
|
Method name: EAnnotation getEAnnotation(String)
|
|
Method name: EEnumLiteral getEEnumLiteral(String)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | for (EAnnotation eAnnotation : eAnnotations)↵ | | 1 | for (E↵
|
2 | ↵ | | 2 | EnumLiteral eEnumLiteral : getELiterals())↵
|
3 | {↵ | | 3 | {↵
|
4 | if (source.equals(eAnnotation.getSource()))↵ | | 4 | if (↵
|
5 | ↵ | | 5 | eEnumLiteral.getName() == null)↵
|
6 | {↵ | | 6 | {↵
|
7 | return eAnnotation;↵ | | 7 | return e↵
|
8 | }↵ | | |
|
9 | ↵ | | 8 | EnumLiteral;↵
|
| | | 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 having the same super class |
Number of node comparisons | 1 |