case EcorePackage.ECLASS__EANNOTATIONS: getEAnnotations().clear(); getEAnnotations().addAll((Collection<? extends EAnnotation>)newValue); return; case EcorePackage.ECLASS__NAME: setName((String)newValue); return;
case EcorePackage.EREFERENCE__EANNOTATIONS: getEAnnotations().clear(); getEAnnotations().addAll((Collection<? extends EAnnotation>)newValue); return; case EcorePackage.EREFERENCE__NAME: setName((String)newValue); return;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EClassImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EReferenceImpl.java
Method name: void eSet(int, Object) Method name: void eSet(int, Object)
Number of AST nodes: 7 Number of AST nodes: 7
1
case EcorePackage.ECLASS__EANNOTATIONS:
1
case EcorePackage.EREFERENCE__EANNOTATIONS:
2
        getEAnnotations().clear();
2
        getEAnnotations().clear();
3
        getEAnnotations().addAll((Collection<? extends EAnnotation>)newValue);
3
        getEAnnotations().addAll((Collection<? extends EAnnotation>)newValue);
4
        return;
4
        return;
5
      case EcorePackage.ECLASS__NAME:
5
      case EcorePackage.EREFERENCE__NAME:
6
        setName((String)newValue);
6
        setName((String)newValue);
7
        return;
7
        return;
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.0
Clones locationClones are in different classes having the same super class
Number of node comparisons37
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements7
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    2
    case EcorePackage.ECLASS__EANNOTATIONS:
    2
    case EcorePackage.ECLASS__EANNOTATIONS:
    2
    case EcorePackage.EREFERENCE__EANNOTATIONS:
    Differences
    Expression1Expression2Difference
    ECLASS__EANNOTATIONSEREFERENCE__EANNOTATIONSVARIABLE_NAME_MISMATCH
    2
    case EcorePackage.EREFERENCE__EANNOTATIONS:
    3
    getEAnnotations().clear();
    3
    getEAnnotations().clear();
    4
    getEAnnotations().addAll((Collection<?extendsEAnnotation>)newValue);
    4
    getEAnnotations().addAll((Collection<?extendsEAnnotation>)newValue);
    5
    return;
    5
    return;
    5
    return;
    Preondition Violations
    Conditional return;
    Conditional return;
    5
    return;
    6
    case EcorePackage.ECLASS__NAME:
    6
    case EcorePackage.ECLASS__NAME:
    6
    case EcorePackage.EREFERENCE__NAME:
    Differences
    Expression1Expression2Difference
    ECLASS__NAMEEREFERENCE__NAMEVARIABLE_NAME_MISMATCH
    6
    case EcorePackage.EREFERENCE__NAME:
    7
    setName((String)newValue);
    7
    setName((String)newValue);
    8
    return;
    8
    return;
    8
    return;
    Preondition Violations
    Conditional return;
    Conditional return;
    8
    return;
    Precondition Violations (4)
    Row Violation
    1Conditional return;
    2Conditional return;
    3Conditional return;
    4Conditional return;