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
        }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are in different classes
Number of node comparisons1