for (Object eClassifier : eClassifiers)
{
if (eClassifier instanceof EClassifierImpl)
{
((EClassifierImpl)eClassifier).ePackage = null;
}
}
for (Object datum : data)
{
if (datum instanceof Throwable)
{
return (Throwable)datum;
}
}
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EPackageImpl.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/common/util/BasicDiagnostic.java
|
Method name: void eSetProxyURI(URI)
|
|
Method name: Throwable getException()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | for (Object eClassifier : eClassifiers)↵ | | 1 | for (Object datum : data)↵
|
2 | {↵ | | 2 | {↵
|
3 | if (eClassifier instanceof EClassifierImpl)↵ | | 3 | if (datum instanceof Throwable)↵
|
4 | {↵ | | 4 | {↵
|
5 | ((EClassifierImpl)eClassifier).ePackage = null;↵ | | 5 | return (Throwable)datum;↵
|
6 | }↵ | | 6 | }↵
|
7 | } | | 7 | }
|
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 |