11557-2-4

case EcorePackage.ETYPED_ELEMENT__EANNOTATIONS: return getEAnnotations(); case EcorePackage.ETYPED_ELEMENT__NAME: return getName(); case EcorePackage.ETYPED_ELEMENT__ORDERED: return isOrdered() ? Boolean.TRUE : Boolean.FALSE; case EcorePackage.ETYPED_ELEMENT__UNIQUE: return isUnique() ? Boolean.TRUE : Boolean.FALSE; case EcorePackage.ETYPED_ELEMENT__LOWER_BOUND:
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:

Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/ETypedElementImpl.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.ETYPED_ELEMENT__EANNOTATIONS:↵

1

    case EcorePackage.ESTRUCTURAL_FEATURE__EANNOTATIONS:↵

2

            return getEAnnotations();↵

2

            return getEAnnotations();↵

3

          case EcorePackage.ETYPED_ELEMENT__NAME:↵

3

          case EcorePackage.ESTRUCTURAL_FEATURE__NAME:↵

4

            return getName();↵

4

            return getName();↵

5

          case EcorePackage.ETYPED_ELEMENT__ORDERED:↵

5

          case EcorePackage.ESTRUCTURAL_FEATURE__ORDERED:↵

6

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

6

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

7

          case EcorePackage.ETYPED_ELEMENT__UNIQUE:↵

7

          case EcorePackage.ESTRUCTURAL_FEATURE__UNIQUE:↵

8

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

8

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

9

          case EcorePackage.ETYPED_ELEMENT__LOWER_BOUND:

9

          case EcorePackage.ESTRUCTURAL_FEATURE__LOWER_BOUND:

See real code fragment |  | See real code fragment

Summary
Number of common nesting structure subtrees | 1
Number of refactorable cases | 1
Number of non-refactorable cases | 0
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0
Clones location | Clones are in different classes having the same super class
Number of node comparisons | 49

1. {Refactorable}

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

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

   2

       case EcorePackage.ETYPED_ELEMENT__EANNOTATIONS:

   2 | case EcorePackage.ETYPED_ELEMENT__EANNOTATIONS:
   2 | case EcorePackage.ESTRUCTURAL_FEATURE__EANNOTATIONS:

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

   2

       case EcorePackage.ESTRUCTURAL_FEATURE__EANNOTATIONS:

   3

       return getEAnnotations();

   3

       return getEAnnotations();

   4

       case EcorePackage.ETYPED_ELEMENT__NAME:

   4 | case EcorePackage.ETYPED_ELEMENT__NAME:
   4 | case EcorePackage.ESTRUCTURAL_FEATURE__NAME:

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

   4

       case EcorePackage.ESTRUCTURAL_FEATURE__NAME:

   5

       return getName();

   5

       return getName();

   6

       case EcorePackage.ETYPED_ELEMENT__ORDERED:

   6 | case EcorePackage.ETYPED_ELEMENT__ORDERED:
   6 | case EcorePackage.ESTRUCTURAL_FEATURE__ORDERED:

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

   6

       case EcorePackage.ESTRUCTURAL_FEATURE__ORDERED:

   7

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

   7

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

   8

       case EcorePackage.ETYPED_ELEMENT__UNIQUE:

   8 | case EcorePackage.ETYPED_ELEMENT__UNIQUE:
   8 | case EcorePackage.ESTRUCTURAL_FEATURE__UNIQUE:

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

   8

       case EcorePackage.ESTRUCTURAL_FEATURE__UNIQUE:

   9

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

   9

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

   10

       case EcorePackage.ETYPED_ELEMENT__LOWER_BOUND:

   10 | case EcorePackage.ETYPED_ELEMENT__LOWER_BOUND:
   10 | case EcorePackage.ESTRUCTURAL_FEATURE__LOWER_BOUND:

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

   10

       case EcorePackage.ESTRUCTURAL_FEATURE__LOWER_BOUND:

   Precondition Violations (0)
   Row | Violation
   --- | ---