11744-2-6

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.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/xml/namespace/impl/XMLNamespaceDocumentRootImpl.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 XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__ID:↵

1

    case EcorePackage.EPACKAGE__NS_URI:↵

2

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

2

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

3

          case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__LANG:↵

3

          case EcorePackage.EPACKAGE__NS_PREFIX:↵

4

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

4

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

5

          case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__SPACE:

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

   10

       case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__ID:

   10 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__ID:
   8 | case EcorePackage.EPACKAGE__NS_PREFIX:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage | org.eclipse.emf.ecore.EcorePackage | VARIABLE_TYPE_MISMATCH
   XML_NAMESPACE_DOCUMENT_ROOT__ID | EPACKAGE__NS_PREFIX | 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.EPACKAGE__NS_PREFIX:

   11

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

   11 | return ID_EDEFAULT == null ? id != null : ! ID_EDEFAULT.equals(id);
   9 | return NS_PREFIX_EDEFAULT == null ? nsPrefix != null : ! NS_PREFIX_EDEFAULT.equals(nsPrefix);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   ID_EDEFAULT | NS_PREFIX_EDEFAULT | VARIABLE_NAME_MISMATCH
   id | nsPrefix | VARIABLE_NAME_MISMATCH
   id | nsPrefix | VARIABLE_NAME_MISMATCH
   ID_EDEFAULT | NS_PREFIX_EDEFAULT | VARIABLE_NAME_MISMATCH

   9

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

   12

       case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__LANG:

   12 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__LANG:
   6 | case EcorePackage.EPACKAGE__NS_URI:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage | org.eclipse.emf.ecore.EcorePackage | VARIABLE_TYPE_MISMATCH
   XML_NAMESPACE_DOCUMENT_ROOT__LANG | EPACKAGE__NS_URI | 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

   6

       case EcorePackage.EPACKAGE__NS_URI:

   13

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

   13 | return LANG_EDEFAULT == null ? lang != null : ! LANG_EDEFAULT.equals(lang);
   7 | return NS_URI_EDEFAULT == null ? nsURI != null : ! NS_URI_EDEFAULT.equals(nsURI);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   LANG_EDEFAULT | NS_URI_EDEFAULT | VARIABLE_NAME_MISMATCH
   lang | nsURI | VARIABLE_NAME_MISMATCH
   lang | nsURI | VARIABLE_NAME_MISMATCH
   LANG_EDEFAULT | NS_URI_EDEFAULT | VARIABLE_NAME_MISMATCH

   7

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

   14

       case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__SPACE:

   14 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__SPACE:
   10 | case EcorePackage.EPACKAGE__EFACTORY_INSTANCE:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage | org.eclipse.emf.ecore.EcorePackage | VARIABLE_TYPE_MISMATCH
   XML_NAMESPACE_DOCUMENT_ROOT__SPACE | EPACKAGE__EFACTORY_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

   10

       case EcorePackage.EPACKAGE__EFACTORY_INSTANCE:

   Precondition Violations (3)
   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 org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage does not match with type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage