if (result || diagnostics != null) result &= validateEClassifier_UniqueTypeParameterNames(eClass, diagnostics, context); if (result || diagnostics != null) result &= validateEClass_InterfaceIsAbstract(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 &= validateEClassifier_UniqueTypeParameterNames(eClass, diagnostics, context);
1
if (result || diagnostics != null) result &= validateEClass_WellFormedMapEntryClass(eClass, diagnostics, context);
2
    if (result || diagnostics != null) result &= validateEClass_InterfaceIsAbstract(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)893.4
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    18
    if (result || diagnostics != null)
    30
    if (result || diagnostics != null)
    19
    result &= validateEClassifier_UniqueTypeParameterNames(eClass, diagnostics, context);
    19
    result &= validateEClassifier_UniqueTypeParameterNames(eClass, diagnostics, context);
    31
    result &= validateEClass_WellFormedMapEntryClass(eClass, diagnostics, context);
    Differences
    Expression1Expression2Difference
    validateEClassifier_UniqueTypeParameterNamesvalidateEClass_WellFormedMapEntryClassMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression validateEClassifier_UniqueTypeParameterNames(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);
    20
    if (result || diagnostics != null)
    32
    if (result || diagnostics != null)
    21
    result &= validateEClass_InterfaceIsAbstract(eClass, diagnostics, context);
    21
    result &= validateEClass_InterfaceIsAbstract(eClass, diagnostics, context);
    33
    result &= validateEClass_ConsistentSuperTypes(eClass, diagnostics, context);
    Differences
    Expression1Expression2Difference
    validateEClass_InterfaceIsAbstractvalidateEClass_ConsistentSuperTypesMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression validateEClass_InterfaceIsAbstract(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 validateEClassifier_UniqueTypeParameterNames(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_InterfaceIsAbstract(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