if (result || diagnostics != null) result &= validateEClass_UniqueOperationSignatures(eClass, diagnostics, context); if (result || diagnostics != null) result &= validateEClass_NoCircularSuperTypes(eClass, diagnostics, context);
if (result || diagnostics != null) result &= validateEClass_WellFormedMapEntryClass(eClass, diagnostics, context); if (result || diagnostics != null) result &= validateEClass_ConsistentSuperTypes(eClass, diagnostics, context);
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreValidator.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreValidator.java
Method name: boolean validateEClass(EClass, DiagnosticChain, Map) Method name: boolean validateEClass(EClass, DiagnosticChain, Map)
Number of AST nodes: 4 Number of AST nodes: 4
1
if (result || diagnostics != null) result &= validateEClass_UniqueOperationSignatures(eClass, diagnostics, context);
1
if (result || diagnostics != null) result &= validateEClass_WellFormedMapEntryClass(eClass, diagnostics, context);
2
    if (result || diagnostics != null) result &= validateEClass_NoCircularSuperTypes(eClass, diagnostics, context);
2
    if (result || diagnostics != null) result &= validateEClass_ConsistentSuperTypes(eClass, diagnostics, context);
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.4
Clones locationClones are in the same method
Number of node comparisons13
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements4
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1076.4
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    26
    if (result || diagnostics != null)
    30
    if (result || diagnostics != null)
    27
    result &= validateEClass_UniqueOperationSignatures(eClass, diagnostics, context);
    27
    result &= validateEClass_UniqueOperationSignatures(eClass, diagnostics, context);
    31
    result &= validateEClass_WellFormedMapEntryClass(eClass, diagnostics, context);
    Differences
    Expression1Expression2Difference
    validateEClass_UniqueOperationSignaturesvalidateEClass_WellFormedMapEntryClassMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression validateEClass_UniqueOperationSignatures(eClass,diagnostics,context) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression validateEClass_WellFormedMapEntryClass(eClass,diagnostics,context) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    31
    result &= validateEClass_WellFormedMapEntryClass(eClass, diagnostics, context);
    28
    if (result || diagnostics != null)
    32
    if (result || diagnostics != null)
    29
    result &= validateEClass_NoCircularSuperTypes(eClass, diagnostics, context);
    29
    result &= validateEClass_NoCircularSuperTypes(eClass, diagnostics, context);
    33
    result &= validateEClass_ConsistentSuperTypes(eClass, diagnostics, context);
    Differences
    Expression1Expression2Difference
    validateEClass_NoCircularSuperTypesvalidateEClass_ConsistentSuperTypesMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression validateEClass_NoCircularSuperTypes(eClass,diagnostics,context) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression validateEClass_ConsistentSuperTypes(eClass,diagnostics,context) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    33
    result &= validateEClass_ConsistentSuperTypes(eClass, diagnostics, context);
    Precondition Violations (4)
    Row Violation
    1Expression validateEClass_UniqueOperationSignatures(eClass,diagnostics,context) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression validateEClass_WellFormedMapEntryClass(eClass,diagnostics,context) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression validateEClass_NoCircularSuperTypes(eClass,diagnostics,context) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression validateEClass_ConsistentSuperTypes(eClass,diagnostics,context) cannot be parameterized, because it has dependencies to/from statements that will be extracted