11557-4-6

case EcorePackage.ESTRUCTURAL_FEATURE__EANNOTATIONS: return getEAnnotations(); case EcorePackage.ESTRUCTURAL_FEATURE__NAME: return getName(); case EcorePackage.ESTRUCTURAL_FEATURE__ORDERED: return isOrdered() ? Boolean.TRUE : Boolean.FALSE; case EcorePackage.ESTRUCTURAL_FEATURE__UNIQUE: return isUnique() ? Boolean.TRUE : Boolean.FALSE; case EcorePackage.ESTRUCTURAL_FEATURE__LOWER_BOUND:
case EcorePackage.ESTRUCTURAL_FEATURE__DEFAULT_VALUE_LITERAL: return getDefaultValueLiteral(); case EcorePackage.ESTRUCTURAL_FEATURE__DEFAULT_VALUE: return getDefaultValue(); case EcorePackage.ESTRUCTURAL_FEATURE__UNSETTABLE: return isUnsettable() ? Boolean.TRUE : Boolean.FALSE; case EcorePackage.ESTRUCTURAL_FEATURE__DERIVED: return isDerived() ? Boolean.TRUE : Boolean.FALSE; case EcorePackage.ESTRUCTURAL_FEATURE__ECONTAINING_CLASS:

Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EStructuralFeatureImpl.java |  | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EStructuralFeatureImpl.java
Method name: `Object eGet(int, boolean, boolean)` |  | Method name: `Object eGet(int, boolean, boolean)`
Number of AST nodes: 9 |  | Number of AST nodes: 9

1

    case EcorePackage.ESTRUCTURAL_FEATURE__EANNOTATIONS:↵

1

    case EcorePackage.ESTRUCTURAL_FEATURE__DEFAULT_VALUE_LITERAL:↵

2

            return getEAnnotations();↵

2

            return getDefaultValueLiteral();↵

3

          case EcorePackage.ESTRUCTURAL_FEATURE__NAME:↵

3

          case EcorePackage.ESTRUCTURAL_FEATURE__DEFAULT_VALUE:↵

4

            return getName();↵

4

            return getDefaultValue();↵

5

          case EcorePackage.ESTRUCTURAL_FEATURE__ORDERED:↵

5

          case EcorePackage.ESTRUCTURAL_FEATURE__UNSETTABLE:↵

6

            return isOrdered() ? Boolean.TRUE : Boolean.FALSE;↵

6

            return isUnsettable() ? Boolean.TRUE : Boolean.FALSE;↵

7

          case EcorePackage.ESTRUCTURAL_FEATURE__UNIQUE:↵

7

          case EcorePackage.ESTRUCTURAL_FEATURE__DERIVED:↵

8

            return isUnique() ? Boolean.TRUE : Boolean.FALSE;↵

8

            return isDerived() ? Boolean.TRUE : Boolean.FALSE;↵

9

          case EcorePackage.ESTRUCTURAL_FEATURE__LOWER_BOUND:

9

          case EcorePackage.ESTRUCTURAL_FEATURE__ECONTAINING_CLASS:

See real code fragment |  | See real code fragment

Summary
Number of common nesting structure subtrees | 1
Number of refactorable cases | 0
Number of non-refactorable cases | 1
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0
Clones location | Clones are in the same method
Number of node comparisons | 50

1. {Non-refactorable}

   Mapping Summary
   Number of mapped statements | 8
   Number of unmapped statements in the first code fragment | 1
   Number of unmapped statements in the second code fragment | 1
   Time elapsed for statement mapping (ms) | 0.0
   Clone type | Type 2

   Mapped Statements
   ID | Statement |  | ID | Statement
   --- | --- | --- | --- | ---

   2

       case EcorePackage.ESTRUCTURAL_FEATURE__EANNOTATIONS:

   2 | case EcorePackage.ESTRUCTURAL_FEATURE__EANNOTATIONS:
   30 | case EcorePackage.ESTRUCTURAL_FEATURE__DEFAULT_VALUE_LITERAL:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   ESTRUCTURAL_FEATURE__EANNOTATIONS | ESTRUCTURAL_FEATURE__DEFAULT_VALUE_LITERAL | VARIABLE_NAME_MISMATCH

   30

       case EcorePackage.ESTRUCTURAL_FEATURE__DEFAULT_VALUE_LITERAL:

   3

       return getEAnnotations();

   3 | return getEAnnotations();

   Preondition Violations
   Unmatched return getEAnnotations();

   4

       case EcorePackage.ESTRUCTURAL_FEATURE__NAME:

   4 | case EcorePackage.ESTRUCTURAL_FEATURE__NAME:
   32 | case EcorePackage.ESTRUCTURAL_FEATURE__DEFAULT_VALUE:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   ESTRUCTURAL_FEATURE__NAME | ESTRUCTURAL_FEATURE__DEFAULT_VALUE | VARIABLE_NAME_MISMATCH

   32

       case EcorePackage.ESTRUCTURAL_FEATURE__DEFAULT_VALUE:

   5

       return getName();

   5 | return getName();
   31 | return getDefaultValueLiteral();

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   getName | getDefaultValueLiteral | METHOD_INVOCATION_NAME_MISMATCH

   31

       return getDefaultValueLiteral();

   33 | return getDefaultValue();

   Preondition Violations
   Unmatched return getDefaultValue();

   33

       return getDefaultValue();

   6

       case EcorePackage.ESTRUCTURAL_FEATURE__ORDERED:

   6 | case EcorePackage.ESTRUCTURAL_FEATURE__ORDERED:
   34 | case EcorePackage.ESTRUCTURAL_FEATURE__UNSETTABLE:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   ESTRUCTURAL_FEATURE__ORDERED | ESTRUCTURAL_FEATURE__UNSETTABLE | VARIABLE_NAME_MISMATCH

   34

       case EcorePackage.ESTRUCTURAL_FEATURE__UNSETTABLE:

   7

       return isOrdered() ? Boolean.TRUE : Boolean.FALSE;

   7 | return isOrdered() ? Boolean.TRUE : Boolean.FALSE;
   35 | return isUnsettable() ? Boolean.TRUE : Boolean.FALSE;

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   isOrdered | isUnsettable | METHOD_INVOCATION_NAME_MISMATCH

   35

       return isUnsettable() ? Boolean.TRUE : Boolean.FALSE;

   8

       case EcorePackage.ESTRUCTURAL_FEATURE__UNIQUE:

   8 | case EcorePackage.ESTRUCTURAL_FEATURE__UNIQUE:
   36 | case EcorePackage.ESTRUCTURAL_FEATURE__DERIVED:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   ESTRUCTURAL_FEATURE__UNIQUE | ESTRUCTURAL_FEATURE__DERIVED | VARIABLE_NAME_MISMATCH

   36

       case EcorePackage.ESTRUCTURAL_FEATURE__DERIVED:

   9

       return isUnique() ? Boolean.TRUE : Boolean.FALSE;

   9 | return isUnique() ? Boolean.TRUE : Boolean.FALSE;
   37 | return isDerived() ? Boolean.TRUE : Boolean.FALSE;

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   isUnique | isDerived | METHOD_INVOCATION_NAME_MISMATCH

   37

       return isDerived() ? Boolean.TRUE : Boolean.FALSE;

   10

       case EcorePackage.ESTRUCTURAL_FEATURE__LOWER_BOUND:

   10 | case EcorePackage.ESTRUCTURAL_FEATURE__LOWER_BOUND:
   38 | case EcorePackage.ESTRUCTURAL_FEATURE__ECONTAINING_CLASS:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   ESTRUCTURAL_FEATURE__LOWER_BOUND | ESTRUCTURAL_FEATURE__ECONTAINING_CLASS | VARIABLE_NAME_MISMATCH

   38

       case EcorePackage.ESTRUCTURAL_FEATURE__ECONTAINING_CLASS:

   Precondition Violations (2)
   Row | Violation
   --- | ---
   1 | Unmatched return getEAnnotations();
   2 | Unmatched return getDefaultValue();