if (fileExtensions == null) { fileExtensions = new ArrayList<String>(); } return fileExtensions;
if (enumerationLiterals == null) { setEnumerationFacet(basicGetEnumerationFacet(eDataType)); } return enumerationLiterals;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/importer/ModelImporter.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/BasicExtendedMetaData.java
Method name: List getFileExtensions() Method name: List getEnumerationFacet()
Number of AST nodes: 3 Number of AST nodes: 3
1
if (fileExtensions == null)
1
if (enumerationLiterals == null)
2
    {
2
      {
3
      fileExtensions = new ArrayList<String>();
3
        setEnumerationFacet(basicGetEnumerationFacet(eDataType));
4
    }
4
    
5
  }
5
    return fileExtensions;
6
      return enumerationLiterals;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are in different classes
Number of node comparisons5
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.6
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (fileExtensions == null)
    1
    if (fileExtensions == null)
    1
    if (enumerationLiterals == null)
    Differences
    Expression1Expression2Difference
    fileExtensionsenumerationLiteralsVARIABLE_NAME_MISMATCH
    1
    if (enumerationLiterals == null)
                                                                                                                            
    2
    setEnumerationFacet(basicGetEnumerationFacet(eDataType));
    Preondition Violations
    Unmatched statement setEnumerationFacet(basicGetEnumerationFacet(eDataType)); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    2
    setEnumerationFacet(basicGetEnumerationFacet(eDataType));
    2
    fileExtensions = new ArrayList<String>();
    2
    fileExtensions = new ArrayList<String>();
    Preondition Violations
    Unmatched statement fileExtensions=new ArrayList<String>(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                                                        
    3
    return fileExtensions;
    3
    return fileExtensions;
    3
    return enumerationLiterals;
    Differences
    Expression1Expression2Difference
    fileExtensionsenumerationLiteralsVARIABLE_NAME_MISMATCH
    3
    return enumerationLiterals;
    Precondition Violations (2)
    Row Violation
    1Unmatched statement setEnumerationFacet(basicGetEnumerationFacet(eDataType)); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    2Unmatched statement fileExtensions=new ArrayList<String>(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted