11744-3-6

case EcorePackage.EENUM_LITERAL__INSTANCE: return INSTANCE_EDEFAULT == null ? instance != null : !INSTANCE_EDEFAULT.equals(instance); case EcorePackage.EENUM_LITERAL__LITERAL: return LITERAL_EDEFAULT == null ? literal != null : !LITERAL_EDEFAULT.equals(literal); case EcorePackage.EENUM_LITERAL__EENUM:
case EcorePackage.EPACKAGE__NS_URI: return NS_URI_EDEFAULT == null ? nsURI != null : !NS_URI_EDEFAULT.equals(nsURI); case EcorePackage.EPACKAGE__NS_PREFIX: return NS_PREFIX_EDEFAULT == null ? nsPrefix != null : !NS_PREFIX_EDEFAULT.equals(nsPrefix); case EcorePackage.EPACKAGE__EFACTORY_INSTANCE:

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

1

    case EcorePackage.EENUM_LITERAL__INSTANCE:↵

1

    case EcorePackage.EPACKAGE__NS_URI:↵

2

            return INSTANCE_EDEFAULT == null ? instance != null : !INSTANCE_EDEFAULT.equals(instance);↵

2

            return NS_URI_EDEFAULT == null ? nsURI != null : !NS_URI_EDEFAULT.equals(nsURI);↵

3

          case EcorePackage.EENUM_LITERAL__LITERAL:↵

3

          case EcorePackage.EPACKAGE__NS_PREFIX:↵

4

            return LITERAL_EDEFAULT == null ? literal != null : !LITERAL_EDEFAULT.equals(literal);↵

4

            return NS_PREFIX_EDEFAULT == null ? nsPrefix != null : !NS_PREFIX_EDEFAULT.equals(nsPrefix);↵

5

          case EcorePackage.EENUM_LITERAL__EENUM:

5

          case EcorePackage.EPACKAGE__EFACTORY_INSTANCE:

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 different classes having the same super class
Number of node comparisons | 17

1. {Non-refactorable}

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

   8

       case EcorePackage.EENUM_LITERAL__INSTANCE:

   8 | case EcorePackage.EENUM_LITERAL__INSTANCE:
   8 | case EcorePackage.EPACKAGE__NS_PREFIX:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   EENUM_LITERAL__INSTANCE | EPACKAGE__NS_PREFIX | VARIABLE_NAME_MISMATCH

   8

       case EcorePackage.EPACKAGE__NS_PREFIX:

   9

       return INSTANCE_EDEFAULT == null ? instance != null : !INSTANCE_EDEFAULT.equals(instance);

   9 | return INSTANCE_EDEFAULT == null ? instance != null : ! INSTANCE_EDEFAULT.equals(instance);
   9 | return NS_PREFIX_EDEFAULT == null ? nsPrefix != null : ! NS_PREFIX_EDEFAULT.equals(nsPrefix);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   INSTANCE_EDEFAULT | NS_PREFIX_EDEFAULT | VARIABLE_NAME_MISMATCH
   org.eclipse.emf.common.util.Enumerator | java.lang.String | VARIABLE_TYPE_MISMATCH
   instance | nsPrefix | VARIABLE_NAME_MISMATCH
   org.eclipse.emf.common.util.Enumerator | java.lang.String | VARIABLE_TYPE_MISMATCH
   instance | nsPrefix | VARIABLE_NAME_MISMATCH
   org.eclipse.emf.common.util.Enumerator | java.lang.String | VARIABLE_TYPE_MISMATCH
   INSTANCE_EDEFAULT | NS_PREFIX_EDEFAULT | VARIABLE_NAME_MISMATCH
   org.eclipse.emf.common.util.Enumerator | java.lang.String | VARIABLE_TYPE_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.common.util.Enumerator of variable INSTANCE_EDEFAULT does not match with type java.lang.String of variable NS_PREFIX_EDEFAULT
   - Make classes org.eclipse.emf.common.util.Enumerator and java.lang.String extend a common superclass

   Type org.eclipse.emf.common.util.Enumerator of variable instance does not match with type java.lang.String of variable nsPrefix
   - Make classes org.eclipse.emf.common.util.Enumerator and java.lang.String extend a common superclass

   Type org.eclipse.emf.common.util.Enumerator of variable instance does not match with type java.lang.String of variable nsPrefix
   - Make classes org.eclipse.emf.common.util.Enumerator and java.lang.String extend a common superclass

   Type org.eclipse.emf.common.util.Enumerator of variable INSTANCE_EDEFAULT does not match with type java.lang.String of variable NS_PREFIX_EDEFAULT
   - Make classes org.eclipse.emf.common.util.Enumerator and java.lang.String extend a common superclass

   9

       return NS_PREFIX_EDEFAULT == null ? nsPrefix != null : !NS_PREFIX_EDEFAULT.equals(nsPrefix);

   10

       case EcorePackage.EENUM_LITERAL__LITERAL:

   10 | case EcorePackage.EENUM_LITERAL__LITERAL:
   6 | case EcorePackage.EPACKAGE__NS_URI:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   EENUM_LITERAL__LITERAL | EPACKAGE__NS_URI | VARIABLE_NAME_MISMATCH

   6

       case EcorePackage.EPACKAGE__NS_URI:

   11

       return LITERAL_EDEFAULT == null ? literal != null : !LITERAL_EDEFAULT.equals(literal);

   11 | return LITERAL_EDEFAULT == null ? literal != null : ! LITERAL_EDEFAULT.equals(literal);
   7 | return NS_URI_EDEFAULT == null ? nsURI != null : ! NS_URI_EDEFAULT.equals(nsURI);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   LITERAL_EDEFAULT | NS_URI_EDEFAULT | VARIABLE_NAME_MISMATCH
   literal | nsURI | VARIABLE_NAME_MISMATCH
   literal | nsURI | VARIABLE_NAME_MISMATCH
   LITERAL_EDEFAULT | NS_URI_EDEFAULT | VARIABLE_NAME_MISMATCH

   7

       return NS_URI_EDEFAULT == null ? nsURI != null : !NS_URI_EDEFAULT.equals(nsURI);

   12

       case EcorePackage.EENUM_LITERAL__EENUM:

   12 | case EcorePackage.EENUM_LITERAL__EENUM:
   10 | case EcorePackage.EPACKAGE__EFACTORY_INSTANCE:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   EENUM_LITERAL__EENUM | EPACKAGE__EFACTORY_INSTANCE | VARIABLE_NAME_MISMATCH

   10

       case EcorePackage.EPACKAGE__EFACTORY_INSTANCE:

   Precondition Violations (4)
   Row | Violation
   --- | ---
   1 | Type org.eclipse.emf.common.util.Enumerator of variable INSTANCE_EDEFAULT does not match with type java.lang.String of variable NS_PREFIX_EDEFAULT
   2 | Type org.eclipse.emf.common.util.Enumerator of variable instance does not match with type java.lang.String of variable nsPrefix
   3 | Type org.eclipse.emf.common.util.Enumerator of variable instance does not match with type java.lang.String of variable nsPrefix
   4 | Type org.eclipse.emf.common.util.Enumerator of variable INSTANCE_EDEFAULT does not match with type java.lang.String of variable NS_PREFIX_EDEFAULT