11744-2-3

case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__ID: return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__LANG: return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang); case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__SPACE:
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:

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

1

    case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__ID:↵

1

    case EcorePackage.EENUM_LITERAL__INSTANCE:↵

2

            return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);↵

2

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

3

          case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__LANG:↵

3

          case EcorePackage.EENUM_LITERAL__LITERAL:↵

4

            return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang);↵

4

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

5

          case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__SPACE:

5

          case EcorePackage.EENUM_LITERAL__EENUM:

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

   10

       case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__ID:

   10 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__ID:
   10 | case EcorePackage.EENUM_LITERAL__LITERAL:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage | org.eclipse.emf.ecore.EcorePackage | VARIABLE_TYPE_MISMATCH
   XML_NAMESPACE_DOCUMENT_ROOT__ID | EENUM_LITERAL__LITERAL | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage does not match with type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage
   - Make classes org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage and org.eclipse.emf.ecore.EcorePackage extend a common superclass

   10

       case EcorePackage.EENUM_LITERAL__LITERAL:

   11

       return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);

   11 | return ID_EDEFAULT == null ? id != null : ! ID_EDEFAULT.equals(id);
   11 | return LITERAL_EDEFAULT == null ? literal != null : ! LITERAL_EDEFAULT.equals(literal);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   ID_EDEFAULT | LITERAL_EDEFAULT | VARIABLE_NAME_MISMATCH
   id | literal | VARIABLE_NAME_MISMATCH
   id | literal | VARIABLE_NAME_MISMATCH
   ID_EDEFAULT | LITERAL_EDEFAULT | VARIABLE_NAME_MISMATCH

   11

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

   12

       case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__LANG:

   12 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__LANG:
   8 | case EcorePackage.EENUM_LITERAL__INSTANCE:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage | org.eclipse.emf.ecore.EcorePackage | VARIABLE_TYPE_MISMATCH
   XML_NAMESPACE_DOCUMENT_ROOT__LANG | EENUM_LITERAL__INSTANCE | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage does not match with type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage
   - Make classes org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage and org.eclipse.emf.ecore.EcorePackage extend a common superclass

   8

       case EcorePackage.EENUM_LITERAL__INSTANCE:

   13

       return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang);

   13 | return LANG_EDEFAULT == null ? lang != null : ! LANG_EDEFAULT.equals(lang);
   9 | return INSTANCE_EDEFAULT == null ? instance != null : ! INSTANCE_EDEFAULT.equals(instance);

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

   Preondition Violations

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

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

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

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

   9

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

   14

       case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__SPACE:

   14 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__SPACE:
   12 | case EcorePackage.EENUM_LITERAL__EENUM:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage | org.eclipse.emf.ecore.EcorePackage | VARIABLE_TYPE_MISMATCH
   XML_NAMESPACE_DOCUMENT_ROOT__SPACE | EENUM_LITERAL__EENUM | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage does not match with type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage
   - Make classes org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage and org.eclipse.emf.ecore.EcorePackage extend a common superclass

   12

       case EcorePackage.EENUM_LITERAL__EENUM:

   Precondition Violations (7)
   Row | Violation
   --- | ---
   1 | Type org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage does not match with type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage
   2 | Type org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage does not match with type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage
   3 | Type java.lang.String of variable LANG_EDEFAULT does not match with type org.eclipse.emf.common.util.Enumerator of variable INSTANCE_EDEFAULT
   4 | Type java.lang.String of variable lang does not match with type org.eclipse.emf.common.util.Enumerator of variable instance
   5 | Type java.lang.String of variable lang does not match with type org.eclipse.emf.common.util.Enumerator of variable instance
   6 | Type java.lang.String of variable LANG_EDEFAULT does not match with type org.eclipse.emf.common.util.Enumerator of variable INSTANCE_EDEFAULT
   7 | Type org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage does not match with type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage