2149-30-36

XMLTypeResourceImpl.DataFrame resultUnsignedShort = unsignedShort == null ? new XMLTypeResourceImpl.DataFrame() : unsignedShort; unsignedShort = null; resultUnsignedShort.pushOnto(previous); resultUnsignedShort.handleAttributes(attributes); return resultUnsignedShort;
XMLTypeResourceImpl.DataFrame resultAnySimpleType = anySimpleType == null ? new XMLTypeResourceImpl.DataFrame() : anySimpleType; anySimpleType = null; resultAnySimpleType.pushOnto(previous); resultAnySimpleType.handleAttributes(attributes); return resultAnySimpleType;

Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/util/XMLTypeResourceImpl.java |  | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/util/XMLTypeResourceImpl.java
Method name: `XMLTypeResourceImpl.DataFrame pushUnsignedShort(XMLTypeResourceImpl.StackFrame, Attributes)` |  | Method name: `XMLTypeResourceImpl.DataFrame pushAnySimpleType(XMLTypeResourceImpl.StackFrame, Attributes)`
Number of AST nodes: 5 |  | Number of AST nodes: 5

1

    XMLTypeResourceImpl.DataFrame resultUnsignedShort = unsignedShort == null ? new XMLTypeResourceImpl.DataFrame() : unsignedShort;↵

1

    XMLTypeResourceImpl.DataFrame resultAnySimpleType = anySimpleType == null ? new XMLTypeResourceImpl.DataFrame() : ↵

2

           unsignedShort↵

2

    anySimpleType;↵

3

     = null;↵

3

           anySimpleType = null;↵

4

           resultUnsignedShort.pushOnto(previous);↵

4

           resultAnySimpleType.pushOnto(previous);↵

5

           resultUnsignedShort.handleAttributes(attributes);↵

5

           resultAnySimpleType.handleAttributes(attributes);↵

6

           return resultUnsignedShort;

6

           return resultAnySimpleType;

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 declared in the same class
Number of node comparisons | 11

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

   1

       XMLTypeResourceImpl.DataFrame resultUnsignedShort = unsignedShort == null ? new XMLTypeResourceImpl.DataFrame() : unsignedShort;

   1 | XMLTypeResourceImpl.DataFrame resultUnsignedShort = unsignedShort == null ? new XMLTypeResourceImpl.DataFrame() : unsignedShort;
   1 | XMLTypeResourceImpl.DataFrame resultAnySimpleType = anySimpleType == null ? new XMLTypeResourceImpl.DataFrame() : anySimpleType;

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   resultUnsignedShort | resultAnySimpleType | VARIABLE_NAME_MISMATCH
   unsignedShort | anySimpleType | VARIABLE_NAME_MISMATCH
   unsignedShort | anySimpleType | VARIABLE_NAME_MISMATCH

   1

       XMLTypeResourceImpl.DataFrame resultAnySimpleType = anySimpleType == null ? new XMLTypeResourceImpl.DataFrame() : anySimpleType;

   2

       unsignedShort = null;

   2 | unsignedShort = null;
   2 | anySimpleType = null;

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   unsignedShort | anySimpleType | VARIABLE_NAME_MISMATCH

   Preondition Violations
   Expression unsignedShort is a field being modified, and thus it cannot be parameterized
   Expression anySimpleType is a field being modified, and thus it cannot be parameterized

   2

       anySimpleType = null;

   3

       resultUnsignedShort.pushOnto(previous);

   3 | resultUnsignedShort.pushOnto(previous);
   3 | resultAnySimpleType.pushOnto(previous);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   resultUnsignedShort | resultAnySimpleType | VARIABLE_NAME_MISMATCH

   3

       resultAnySimpleType.pushOnto(previous);

   4

       resultUnsignedShort.handleAttributes(attributes);

   4 | resultUnsignedShort.handleAttributes(attributes);
   4 | resultAnySimpleType.handleAttributes(attributes);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   resultUnsignedShort | resultAnySimpleType | VARIABLE_NAME_MISMATCH

   4

       resultAnySimpleType.handleAttributes(attributes);

   5

       return resultUnsignedShort;

   5 | return resultUnsignedShort;
   5 | return resultAnySimpleType;

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   resultUnsignedShort | resultAnySimpleType | VARIABLE_NAME_MISMATCH

   5

       return resultAnySimpleType;

   Precondition Violations (2)
   Row | Violation
   --- | ---
   1 | Expression unsignedShort is a field being modified, and thus it cannot be parameterized
   2 | Expression anySimpleType is a field being modified, and thus it cannot be parameterized