try
{
return EDATE_FORMATS[i].parse(initialValue);
}
catch (ParseException parseException)
{
exception = parseException;
}
for (int i = 0; i < delegateResourceLocators.length; ++i)
{
try
{
return delegateResourceLocators[i].getImage(key);
}
catch (MissingResourceException exception)
{
// Ignore the exception since we will throw one when all else fails.
}
}
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EcoreFactoryImpl.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/common/util/DelegatingResourceLocator.java
|
Method name: Date createEDateFromString(EDataType, String)
|
|
Method name: Object delegatedGetImage(String)
|
Number of AST nodes: 2
|
|
Number of AST nodes: 3
|
|
1 | try↵ | | |
|
2 | {↵ | | |
|
3 | return EDATE_FORMATS[i].parse(initialValue↵ | | 1 | for (int i = 0; i < delegateResourceLocators.length; ++i)↵
|
| | | 2 | {↵
|
| | | 3 | try↵
|
| | | 4 | {↵
|
4 | );↵ | | 5 | return delegateResourceLocators[i].getImage(key);↵
|
5 | }↵ | | 6 | }↵
|
6 | catch (ParseException parseException)↵ | | 7 | catch (MissingResourceException exception)↵
|
7 | {↵ | | 8 | {↵
|
8 | exception = parseException;↵ | | 9 | // Ignore the exception since we will throw one when all else fails.↵
|
9 | } | | 10 | }↵
|
| | | 11 | }
|
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 |