EGenericType eTypeArgument = eTypeArguments.get(j); EGenericType otherETypeArgument = otherETypeArguments.get(j); if (!equivalent(eTypeArgument, otherETypeArgument)) { return false; }
EGenericType eTypeArgument1 = eTypeArguments1.get(i); EGenericType eTypeArgument2 = eTypeArguments2.get(i); if (!equalTypeArguments(eTypeArgument1, eTypeArgument2, substitutions)) { return false; }
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/util/EcoreValidator.java
Method name: boolean equivalent(EGenericType, EGenericType) Method name: boolean equalTypeArguments(EList, EList, Map)
Number of AST nodes: 4 Number of AST nodes: 4
1
EGenericType eTypeArgument = eTypeArguments.get(j);
1
EGenericType eTypeArgument1 = eTypeArguments1.get(i);
2
                    EGenericType otherETypeArgument = otherETypeArguments.get(j);
2
        EGenericType eTypeArgument2 = eTypeArguments2.get(i);
3
                    if (!equivalent(eTypeArgument, otherETypeArgument))
3
        if (!equalTypeArguments(eTypeArgument1, eTypeArgument
4
                    {
5
            
4
2, substitutions))
5
        {
6
          return false;
6
          return false;
7
                    }
7
        }
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.3
Clones locationClones are in different classes
Number of node comparisons9
  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)1.5
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    17
    EGenericType eTypeArgument = eTypeArguments.get(j);
    17
    EGenericType eTypeArgument = eTypeArguments.get(j);
    6
    EGenericType eTypeArgument2 = eTypeArguments2.get(i);
    Differences
    Expression1Expression2Difference
    eTypeArgumenteTypeArgument2VARIABLE_NAME_MISMATCH
    jiVARIABLE_NAME_MISMATCH
    eTypeArgumentseTypeArguments2VARIABLE_NAME_MISMATCH
    6
    EGenericType eTypeArgument2 = eTypeArguments2.get(i);
    18
    EGenericType otherETypeArgument = otherETypeArguments.get(j);
    18
    EGenericType otherETypeArgument = otherETypeArguments.get(j);
    5
    EGenericType eTypeArgument1 = eTypeArguments1.get(i);
    Differences
    Expression1Expression2Difference
    otherETypeArgumenteTypeArgument1VARIABLE_NAME_MISMATCH
    jiVARIABLE_NAME_MISMATCH
    otherETypeArgumentseTypeArguments1VARIABLE_NAME_MISMATCH
    5
    EGenericType eTypeArgument1 = eTypeArguments1.get(i);
    19
    if (!equivalent(eTypeArgument, otherETypeArgument))
    19
    if (!equivalent(eTypeArgument, otherETypeArgument))
    7
    if (!equalTypeArguments(eTypeArgument1, eTypeArgument2, substitutions))
    Differences
    Expression1Expression2Difference
    equivalentequalTypeArgumentsMETHOD_INVOCATION_NAME_MISMATCH
    equivalent(eTypeArgument,otherETypeArgument)equalTypeArguments(eTypeArgument1,eTypeArgument2,substitutions)ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression equivalent(eTypeArgument,otherETypeArgument) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression equalTypeArguments(eTypeArgument1,eTypeArgument2,substitutions) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression equivalent(eTypeArgument,otherETypeArgument) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression equalTypeArguments(eTypeArgument1,eTypeArgument2,substitutions) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7
    if (!equalTypeArguments(eTypeArgument1, eTypeArgument2, substitutions))
    20
    return false;
    20
    return false;
    8
    return false;
    Preondition Violations
    Conditional return false;
    Conditional return false;
    8
    return false;
    Precondition Violations (6)
    Row Violation
    1Expression equivalent(eTypeArgument,otherETypeArgument) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression equalTypeArguments(eTypeArgument1,eTypeArgument2,substitutions) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression equivalent(eTypeArgument,otherETypeArgument) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression equalTypeArguments(eTypeArgument1,eTypeArgument2,substitutions) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Conditional return false;
    6Conditional return false;