try { return EDATE_FORMATS[i].parse(initialValue); } catch (ParseException parseException) { exception = parseException; }
try { return EDATE_FORMATS[i].parse(stringValue); } catch (ParseException parseException) { // Keep trying until all else has failed. }
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/impl/EFactoryImpl.java
Method name: Date createEDateFromString(EDataType, String) Method name: Object createFromString(EDataType, String)
Number of AST nodes: 2 Number of AST nodes: 2
1
try
1
try
2
      {
2
      
3
  {
3
        return EDATE_FORMATS[i].parse(initialValue);
4
          return EDATE_FORMATS[i].parse(stringValue);
4
      }
5
      
6
  }
5
      catch (ParseException parseException)
7
        catch (ParseException parseException)
6
      {
8
        {
7
        exception = parseException;
9
        
10
  // Keep trying until all else has failed.
8
      }
11
        }
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 having the same super class
Number of node comparisons1