11744-1-2

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

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

1

    case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__ID:↵

2

            return BASE_EDEFAULT == null ? base != null : !BASE_EDEFAULT.equals(base);↵

2

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

3

          case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__ID:↵

3

          case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__LANG:↵

4

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

4

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

5

          case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__LANG:

5

          case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__SPACE:

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 the same method
Number of node comparisons | 17

1. {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 XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__BASE:

   8 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__BASE:
   10 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__ID:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   XML_NAMESPACE_DOCUMENT_ROOT__BASE | XML_NAMESPACE_DOCUMENT_ROOT__ID | VARIABLE_NAME_MISMATCH

   10

       case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__ID:

   9

       return BASE_EDEFAULT == null ? base != null : !BASE_EDEFAULT.equals(base);

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

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   BASE_EDEFAULT | ID_EDEFAULT | VARIABLE_NAME_MISMATCH
   base | id | VARIABLE_NAME_MISMATCH
   base | id | VARIABLE_NAME_MISMATCH
   BASE_EDEFAULT | ID_EDEFAULT | VARIABLE_NAME_MISMATCH

   11

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

   10

       case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__ID:

   10 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__ID:
   12 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__LANG:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   XML_NAMESPACE_DOCUMENT_ROOT__ID | XML_NAMESPACE_DOCUMENT_ROOT__LANG | VARIABLE_NAME_MISMATCH

   12

       case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__LANG:

   11

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

   11 | return ID_EDEFAULT == null ? id != null : ! ID_EDEFAULT.equals(id);
   13 | return LANG_EDEFAULT == null ? lang != null : ! LANG_EDEFAULT.equals(lang);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   ID_EDEFAULT | LANG_EDEFAULT | VARIABLE_NAME_MISMATCH
   id | lang | VARIABLE_NAME_MISMATCH
   id | lang | VARIABLE_NAME_MISMATCH
   ID_EDEFAULT | LANG_EDEFAULT | VARIABLE_NAME_MISMATCH

   13

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

   12

       case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__LANG:

   12 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__LANG:
   14 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__SPACE:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   XML_NAMESPACE_DOCUMENT_ROOT__LANG | XML_NAMESPACE_DOCUMENT_ROOT__SPACE | VARIABLE_NAME_MISMATCH

   14

       case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__SPACE:

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