if (eAttributeType == null || !isFrozen() && eAttributeType.eIsProxy()) { EClassifier eType = getEType(); if (eType instanceof EDataType) { eAttributeType = (EDataType)eType; } } return eAttributeType;
if (eReferenceType == null || !isFrozen() && eReferenceType.eIsProxy()) { EClassifier eType = getEType(); if (eType instanceof EClass) { eReferenceType =(EClass)eType; } } return eReferenceType;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EAttributeImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EReferenceImpl.java
Method name: EDataType getEAttributeType() Method name: EClass getEReferenceType()
Number of AST nodes: 5 Number of AST nodes: 5
1
if (eAttributeType == null || !isFrozen() && eAttributeType.eIsProxy())
1
if (eReferenceType == null || !isFrozen() && eReferenceType.eIsProxy())
2
    {
2
    {
3
      EClassifier eType = getEType();
3
      EClassifier eType = getEType();
4
      if (eType instanceof EDataType)
4
      if (eType instanceof EClass)
5
      {
5
      {
6
        eAttributeType = (EDataType)eType;
6
        eReferenceType =(EClass)eType;
7
      }
7
      }
8
    }
8
    }
9
    return eAttributeType;
9
    return eReferenceType;
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