11903-2-3

case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__MIXED: return mixed != null && !mixed.isEmpty(); case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty(); case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
case ChangePackage.CHANGE_DESCRIPTION__OBJECT_CHANGES: return objectChanges != null && !objectChanges.isEmpty(); case ChangePackage.CHANGE_DESCRIPTION__OBJECTS_TO_DETACH: return objectsToDetach != null && !objectsToDetach.isEmpty(); case ChangePackage.CHANGE_DESCRIPTION__OBJECTS_TO_ATTACH: return objectsToAttach != null && !objectsToAttach.isEmpty();

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/change/impl/ChangeDescriptionImpl.java
Method name: `boolean eIsSet(int)` |  | Method name: `boolean eIsSet(int)`
Number of AST nodes: 6 |  | Number of AST nodes: 6

1

    case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__MIXED:↵

1

    case ChangePackage.CHANGE_DESCRIPTION__OBJECT_CHANGES:↵

2

            return mixed != null && !mixed.isEmpty();↵

2

            return objectChanges != null && !objectChanges.isEmpty();↵

3

          case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:↵

3

          case ChangePackage.CHANGE_DESCRIPTION__OBJECTS_TO_DETACH:↵

4

            return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();↵

4

            return objectsToDetach != null && !objectsToDetach.isEmpty();↵

5

          case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:↵

5

          case ↵

6

            return xSISchemaLocation != null && !xSISchemaLocation↵

6

    ChangePackage.CHANGE_DESCRIPTION__OBJECTS_TO_ATTACH:↵

7

    .isEmpty();

7

            return objectsToAttach != null && !objectsToAttach.isEmpty();

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

1. {Non-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
   --- | --- | --- | --- | ---

   2

       case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__MIXED:

   2 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__MIXED:
   2 | case ChangePackage.CHANGE_DESCRIPTION__OBJECT_CHANGES:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage | org.eclipse.emf.ecore.change.ChangePackage | VARIABLE_TYPE_MISMATCH
   XML_NAMESPACE_DOCUMENT_ROOT__MIXED | CHANGE_DESCRIPTION__OBJECT_CHANGES | 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.change.ChangePackage of variable ChangePackage
   - Make classes org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage and org.eclipse.emf.ecore.change.ChangePackage extend a common superclass

   2

       case ChangePackage.CHANGE_DESCRIPTION__OBJECT_CHANGES:

   3

       return mixed != null && !mixed.isEmpty();

   3 | return mixed != null && ! mixed.isEmpty();
   3 | return objectChanges != null && ! objectChanges.isEmpty();

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   mixed | objectChanges | VARIABLE_NAME_MISMATCH
   org.eclipse.emf.ecore.util.FeatureMap | org.eclipse.emf.common.util.EMap> | VARIABLE_TYPE_MISMATCH
   mixed | objectChanges | VARIABLE_NAME_MISMATCH
   org.eclipse.emf.ecore.util.FeatureMap | org.eclipse.emf.common.util.EMap> | VARIABLE_TYPE_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.util.FeatureMap of variable mixed does not match with type org.eclipse.emf.common.util.EMap<org.eclipse.emf.ecore.EObject,org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.change.FeatureChange>> of variable objectChanges
   - Make classes org.eclipse.emf.ecore.util.FeatureMap and org.eclipse.emf.common.util.EMap> extend a common superclass

   Type org.eclipse.emf.ecore.util.FeatureMap of variable mixed does not match with type org.eclipse.emf.common.util.EMap<org.eclipse.emf.ecore.EObject,org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.change.FeatureChange>> of variable objectChanges
   - Make classes org.eclipse.emf.ecore.util.FeatureMap and org.eclipse.emf.common.util.EMap> extend a common superclass

   3

       return objectChanges != null && !objectChanges.isEmpty();

   4

       case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:

   4 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
   4 | case ChangePackage.CHANGE_DESCRIPTION__OBJECTS_TO_DETACH:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage | org.eclipse.emf.ecore.change.ChangePackage | VARIABLE_TYPE_MISMATCH
   XML_NAMESPACE_DOCUMENT_ROOT__XMLNS_PREFIX_MAP | CHANGE_DESCRIPTION__OBJECTS_TO_DETACH | 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.change.ChangePackage of variable ChangePackage
   - Make classes org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage and org.eclipse.emf.ecore.change.ChangePackage extend a common superclass

   4

       case ChangePackage.CHANGE_DESCRIPTION__OBJECTS_TO_DETACH:

   5

       return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();

   5 | return xMLNSPrefixMap != null && ! xMLNSPrefixMap.isEmpty();
   5 | return objectsToDetach != null && ! objectsToDetach.isEmpty();

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   xMLNSPrefixMap | objectsToDetach | VARIABLE_NAME_MISMATCH
   org.eclipse.emf.common.util.EMap | org.eclipse.emf.common.util.EList | VARIABLE_TYPE_MISMATCH
   xMLNSPrefixMap | objectsToDetach | VARIABLE_NAME_MISMATCH
   org.eclipse.emf.common.util.EMap | org.eclipse.emf.common.util.EList | VARIABLE_TYPE_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.common.util.EMap<java.lang.String,java.lang.String> of variable xMLNSPrefixMap does not match with type org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> of variable objectsToDetach
   - Make classes org.eclipse.emf.common.util.EMap and org.eclipse.emf.common.util.EList extend a common superclass

   Type org.eclipse.emf.common.util.EMap<java.lang.String,java.lang.String> of variable xMLNSPrefixMap does not match with type org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> of variable objectsToDetach
   - Make classes org.eclipse.emf.common.util.EMap and org.eclipse.emf.common.util.EList extend a common superclass

   5

       return objectsToDetach != null && !objectsToDetach.isEmpty();

   6

       case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:

   6 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
   6 | case ChangePackage.CHANGE_DESCRIPTION__OBJECTS_TO_ATTACH:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage | org.eclipse.emf.ecore.change.ChangePackage | VARIABLE_TYPE_MISMATCH
   XML_NAMESPACE_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION | CHANGE_DESCRIPTION__OBJECTS_TO_ATTACH | 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.change.ChangePackage of variable ChangePackage
   - Make classes org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage and org.eclipse.emf.ecore.change.ChangePackage extend a common superclass

   6

       case ChangePackage.CHANGE_DESCRIPTION__OBJECTS_TO_ATTACH:

   7

       return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();

   7 | return xSISchemaLocation != null && ! xSISchemaLocation.isEmpty();
   7 | return objectsToAttach != null && ! objectsToAttach.isEmpty();

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   xSISchemaLocation | objectsToAttach | VARIABLE_NAME_MISMATCH
   org.eclipse.emf.common.util.EMap | org.eclipse.emf.common.util.EList | VARIABLE_TYPE_MISMATCH
   xSISchemaLocation | objectsToAttach | VARIABLE_NAME_MISMATCH
   org.eclipse.emf.common.util.EMap | org.eclipse.emf.common.util.EList | VARIABLE_TYPE_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.common.util.EMap<java.lang.String,java.lang.String> of variable xSISchemaLocation does not match with type org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> of variable objectsToAttach
   - Make classes org.eclipse.emf.common.util.EMap and org.eclipse.emf.common.util.EList extend a common superclass

   Type org.eclipse.emf.common.util.EMap<java.lang.String,java.lang.String> of variable xSISchemaLocation does not match with type org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> of variable objectsToAttach
   - Make classes org.eclipse.emf.common.util.EMap and org.eclipse.emf.common.util.EList extend a common superclass

   7

       return objectsToAttach != null && !objectsToAttach.isEmpty();

   Precondition Violations (9)
   Row | Violation
   --- | ---
   1 | Type org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage does not match with type org.eclipse.emf.ecore.change.ChangePackage of variable ChangePackage
   2 | Type org.eclipse.emf.ecore.util.FeatureMap of variable mixed does not match with type org.eclipse.emf.common.util.EMap<org.eclipse.emf.ecore.EObject,org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.change.FeatureChange>> of variable objectChanges
   3 | Type org.eclipse.emf.ecore.util.FeatureMap of variable mixed does not match with type org.eclipse.emf.common.util.EMap<org.eclipse.emf.ecore.EObject,org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.change.FeatureChange>> of variable objectChanges
   4 | Type org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage does not match with type org.eclipse.emf.ecore.change.ChangePackage of variable ChangePackage
   5 | Type org.eclipse.emf.common.util.EMap<java.lang.String,java.lang.String> of variable xMLNSPrefixMap does not match with type org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> of variable objectsToDetach
   6 | Type org.eclipse.emf.common.util.EMap<java.lang.String,java.lang.String> of variable xMLNSPrefixMap does not match with type org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> of variable objectsToDetach
   7 | Type org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage does not match with type org.eclipse.emf.ecore.change.ChangePackage of variable ChangePackage
   8 | Type org.eclipse.emf.common.util.EMap<java.lang.String,java.lang.String> of variable xSISchemaLocation does not match with type org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> of variable objectsToAttach
   9 | Type org.eclipse.emf.common.util.EMap<java.lang.String,java.lang.String> of variable xSISchemaLocation does not match with type org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> of variable objectsToAttach