11657-2-4

case EcorePackage.ESTRUCTURAL_FEATURE__VOLATILE: return isVolatile() ? Boolean.TRUE : Boolean.FALSE; case EcorePackage.ESTRUCTURAL_FEATURE__TRANSIENT: return isTransient() ? Boolean.TRUE : Boolean.FALSE; case EcorePackage.ESTRUCTURAL_FEATURE__DEFAULT_VALUE_LITERAL: return getDefaultValueLiteral(); case EcorePackage.ESTRUCTURAL_FEATURE__DEFAULT_VALUE: return getDefaultValue(); case EcorePackage.ESTRUCTURAL_FEATURE__UNSETTABLE:
case EcorePackage.EREFERENCE__VOLATILE: return isVolatile() ? Boolean.TRUE : Boolean.FALSE; case EcorePackage.EREFERENCE__TRANSIENT: return isTransient() ? Boolean.TRUE : Boolean.FALSE; case EcorePackage.EREFERENCE__DEFAULT_VALUE_LITERAL: return getDefaultValueLiteral(); case EcorePackage.EREFERENCE__DEFAULT_VALUE: return getDefaultValue(); case EcorePackage.EREFERENCE__UNSETTABLE:

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/EReferenceImpl.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__VOLATILE:↵

1

    case EcorePackage.EREFERENCE__VOLATILE:↵

2

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

2

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

3

          case EcorePackage.ESTRUCTURAL_FEATURE__TRANSIENT:↵

3

          case EcorePackage.EREFERENCE__TRANSIENT:↵

4

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

4

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

5

          case EcorePackage.ESTRUCTURAL_FEATURE__DEFAULT_VALUE_LITERAL:↵

5

          case EcorePackage.EREFERENCE__DEFAULT_VALUE_LITERAL:↵

6

            return getDefaultValueLiteral();↵

6

            return getDefaultValueLiteral();↵

7

          case EcorePackage.ESTRUCTURAL_FEATURE__DEFAULT_VALUE:↵

7

          case EcorePackage.EREFERENCE__DEFAULT_VALUE:↵

8

            return getDefaultValue();↵

8

            return getDefaultValue();↵

9

          case EcorePackage.ESTRUCTURAL_FEATURE__UNSETTABLE:

9

          case EcorePackage.EREFERENCE__UNSETTABLE:

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
   --- | --- | --- | --- | ---

   26

       case EcorePackage.ESTRUCTURAL_FEATURE__VOLATILE:

   26 | case EcorePackage.ESTRUCTURAL_FEATURE__VOLATILE:
   26 | case EcorePackage.EREFERENCE__VOLATILE:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   ESTRUCTURAL_FEATURE__VOLATILE | EREFERENCE__VOLATILE | VARIABLE_NAME_MISMATCH

   26

       case EcorePackage.EREFERENCE__VOLATILE:

   27

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

   27

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

   28

       case EcorePackage.ESTRUCTURAL_FEATURE__TRANSIENT:

   28 | case EcorePackage.ESTRUCTURAL_FEATURE__TRANSIENT:
   28 | case EcorePackage.EREFERENCE__TRANSIENT:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   ESTRUCTURAL_FEATURE__TRANSIENT | EREFERENCE__TRANSIENT | VARIABLE_NAME_MISMATCH

   28

       case EcorePackage.EREFERENCE__TRANSIENT:

   29

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

   29

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

   30

       case EcorePackage.ESTRUCTURAL_FEATURE__DEFAULT_VALUE_LITERAL:

   30 | case EcorePackage.ESTRUCTURAL_FEATURE__DEFAULT_VALUE_LITERAL:
   30 | case EcorePackage.EREFERENCE__DEFAULT_VALUE_LITERAL:

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

   30

       case EcorePackage.EREFERENCE__DEFAULT_VALUE_LITERAL:

   31

       return getDefaultValueLiteral();

   31

       return getDefaultValueLiteral();

   32

       case EcorePackage.ESTRUCTURAL_FEATURE__DEFAULT_VALUE:

   32 | case EcorePackage.ESTRUCTURAL_FEATURE__DEFAULT_VALUE:
   32 | case EcorePackage.EREFERENCE__DEFAULT_VALUE:

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

   32

       case EcorePackage.EREFERENCE__DEFAULT_VALUE:

   33

       return getDefaultValue();

   33

       return getDefaultValue();

   34

       case EcorePackage.ESTRUCTURAL_FEATURE__UNSETTABLE:

   34 | case EcorePackage.ESTRUCTURAL_FEATURE__UNSETTABLE:
   34 | case EcorePackage.EREFERENCE__UNSETTABLE:

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

   34

       case EcorePackage.EREFERENCE__UNSETTABLE:

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