try
{
return EDATE_FORMATS[i].parse(initialValue);
}
catch (ParseException parseException)
{
exception = parseException;
}
try
{
temporaryFileName = File.createTempFile("XMLSave", null).getPath();
}
catch (IOException exception)
{
// If we can't create a temp file then we have to ignore the option.
}
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/ecore/xmi/impl/XMLSaveImpl.java
|
Method name: Date createEDateFromString(EDataType, String)
|
|
Method name: void init(XMLResource, Map,?>)
|
Number of AST nodes: 2
|
|
Number of AST nodes: 2
|
|
1 | try↵ | | 1 | try↵
|
2 | {↵ | | 2 | {↵
|
3 | return EDATE_FORMATS[i].parse(initialValue);↵ | | 3 | temporaryFileName = File.createTempFile("XMLSave", null).getPath();↵
|
4 | }↵ | | 4 | ↵
|
| | | 5 | }↵
|
5 | catch (ParseException parseException)↵ | | 6 | catch (IOException exception)↵
|
6 | {↵ | | 7 | {↵
|
7 | exception = parseException;↵ | | 8 | // If we can't create a temp file then we have to ignore the option↵
|
| | | 9 | .↵
|
8 | } | | 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 |