1378-1-4

String type = element.getAttribute(ATT_TYPE); if (type == null) { logMissingAttribute(element, ATT_TYPE); } else if (element.getAttribute(ATT_CLASS) == null) { logMissingAttribute(element, ATT_CLASS);
String packageURI = element.getAttribute(ATT_URI); if (packageURI == null) { logMissingAttribute(element, ATT_URI); } else if (element.getAttribute(ATT_CLASS) == null) { logMissingAttribute(element, ATT_CLASS);

Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/plugin/ExtensionParserRegistryReader.java |  | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/plugin/GeneratedPackageRegistryReader.java
Method name: `boolean readElement(IConfigurationElement, boolean)` |  | Method name: `boolean readElement(IConfigurationElement, boolean)`
Number of AST nodes: 3 |  | Number of AST nodes: 3

1

    String type = element.getAttribute(ATT_TYPE);↵

1

    String packageURI = element.getAttribute(ATT_URI);↵

2

          if (type == null)↵

2

          if (packageURI == null)↵

3

          {↵

3

          {↵

4

            logMissingAttribute(element, ATT_TYPE);↵

4

            logMissingAttribute(element, ATT_URI);↵

5

          }↵

5

          }↵

6

          else if (element.getAttribute(ATT_CLASS) == null)↵

6

          else if (element.getAttribute(ATT_CLASS) == null)↵

7

          {↵

7

          {↵

8

            logMissingAttribute(element, ATT_CLASS);

8

            logMissingAttribute(element, ATT_CLASS);

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

1. {Non-refactorable}

   Mapping Summary
   Number of mapped statements | 0
   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 | Unknown type

   Mapped Statements
   ID | Statement |  | ID | Statement
   --- | --- | --- | --- | ---

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