11473-3-4

case EcorePackage.EENUM__DEFAULT_VALUE: return DEFAULT_VALUE_EDEFAULT == null ? getDefaultValue() != null : !DEFAULT_VALUE_EDEFAULT.equals(getDefaultValue()); case EcorePackage.EENUM__INSTANCE_TYPE_NAME: return isSetInstanceTypeName(); case EcorePackage.EENUM__EPACKAGE: return basicGetEPackage() != null;
case EcorePackage.EDATA_TYPE__DEFAULT_VALUE: return DEFAULT_VALUE_EDEFAULT == null ? getDefaultValue() != null : !DEFAULT_VALUE_EDEFAULT.equals(getDefaultValue()); case EcorePackage.EDATA_TYPE__INSTANCE_TYPE_NAME: return isSetInstanceTypeName(); case EcorePackage.EDATA_TYPE__EPACKAGE: return basicGetEPackage() != null;

Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EEnumImpl.java |  | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EDataTypeImpl.java
Method name: `boolean eIsSet(int)` |  | Method name: `boolean eIsSet(int)`
Number of AST nodes: 6 |  | Number of AST nodes: 6

1

    case EcorePackage.EENUM__DEFAULT_VALUE:↵

1

    case EcorePackage.EDATA_TYPE__DEFAULT_VALUE:↵

2

            return DEFAULT_VALUE_EDEFAULT == null ? getDefaultValue() != null : !DEFAULT_VALUE_EDEFAULT.equals(getDefaultValue());↵

2

            return DEFAULT_VALUE_EDEFAULT == null ? getDefaultValue() != null : !DEFAULT_VALUE_EDEFAULT.equals(getDefaultValue());↵

3

          case EcorePackage.EENUM__INSTANCE_TYPE_NAME:↵

3

          case EcorePackage.EDATA_TYPE__INSTANCE_TYPE_NAME:↵

4

            return isSetInstanceTypeName();↵

4

            return isSetInstanceTypeName();↵

5

          case EcorePackage.EENUM__EPACKAGE:↵

5

          case EcorePackage.EDATA_TYPE__EPACKAGE:↵

6

            return basicGetEPackage() != null;

6

            return basicGetEPackage() != null;

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

1. {Refactorable}

   Mapping Summary
   Number of mapped statements | 6
   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
   --- | --- | --- | --- | ---

   10

       case EcorePackage.EENUM__DEFAULT_VALUE:

   10 | case EcorePackage.EENUM__DEFAULT_VALUE:
   10 | case EcorePackage.EDATA_TYPE__DEFAULT_VALUE:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   EENUM__DEFAULT_VALUE | EDATA_TYPE__DEFAULT_VALUE | VARIABLE_NAME_MISMATCH

   10

       case EcorePackage.EDATA_TYPE__DEFAULT_VALUE:

   11

       return DEFAULT_VALUE_EDEFAULT == null ? getDefaultValue() != null : !DEFAULT_VALUE_EDEFAULT.equals(getDefaultValue());

   11

       return DEFAULT_VALUE_EDEFAULT == null ? getDefaultValue() != null : !DEFAULT_VALUE_EDEFAULT.equals(getDefaultValue());

   12

       case EcorePackage.EENUM__INSTANCE_TYPE_NAME:

   12 | case EcorePackage.EENUM__INSTANCE_TYPE_NAME:
   12 | case EcorePackage.EDATA_TYPE__INSTANCE_TYPE_NAME:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   EENUM__INSTANCE_TYPE_NAME | EDATA_TYPE__INSTANCE_TYPE_NAME | VARIABLE_NAME_MISMATCH

   12

       case EcorePackage.EDATA_TYPE__INSTANCE_TYPE_NAME:

   13

       return isSetInstanceTypeName();

   13

       return isSetInstanceTypeName();

   14

       case EcorePackage.EENUM__EPACKAGE:

   14 | case EcorePackage.EENUM__EPACKAGE:
   14 | case EcorePackage.EDATA_TYPE__EPACKAGE:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   EENUM__EPACKAGE | EDATA_TYPE__EPACKAGE | VARIABLE_NAME_MISMATCH

   14

       case EcorePackage.EDATA_TYPE__EPACKAGE:

   15

       return basicGetEPackage() != null;

   15

       return basicGetEPackage() != null;

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