2149-17-35

XMLTypeResourceImpl.DataFrame resultIDREFSBase = idrefsBase == null ? new XMLTypeResourceImpl.DataFrame() : idrefsBase; idrefsBase = null; resultIDREFSBase.pushOnto(previous); resultIDREFSBase.handleAttributes(attributes); return resultIDREFSBase;
XMLTypeResourceImpl.DataFrame resultNMTOKENS = nmtokens == null ? new XMLTypeResourceImpl.DataFrame() : nmtokens; nmtokens = null; resultNMTOKENS.pushOnto(previous); resultNMTOKENS.handleAttributes(attributes); return resultNMTOKENS;

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 pushIDREFSBase(XMLTypeResourceImpl.StackFrame, Attributes)` |  | Method name: `XMLTypeResourceImpl.DataFrame pushNMTOKENS(XMLTypeResourceImpl.StackFrame, Attributes)`
Number of AST nodes: 5 |  | Number of AST nodes: 5

1

    XMLTypeResourceImpl.DataFrame resultIDREFSBase = idrefsBase == null ? new XMLTypeResourceImpl.DataFrame() : idrefsBase;↵

1

    XMLTypeResourceImpl.DataFrame resultNMTOKENS = nmtokens == null ? new XMLTypeResourceImpl.DataFrame() : ↵

2

           idrefsBase↵

2

    nmtokens;↵

3

     = null;↵

3

           nmtokens = null;↵

4

           resultIDREFSBase.pushOnto(previous);↵

4

           resultNMTOKENS.pushOnto(previous);↵

5

           resultIDREFSBase.handleAttributes(attributes);↵

5

           resultNMTOKENS.handleAttributes(attributes);↵

6

           return resultIDREFSBase;

6

           return resultNMTOKENS;

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 resultIDREFSBase = idrefsBase == null ? new XMLTypeResourceImpl.DataFrame() : idrefsBase;

   1 | XMLTypeResourceImpl.DataFrame resultIDREFSBase = idrefsBase == null ? new XMLTypeResourceImpl.DataFrame() : idrefsBase;
   1 | XMLTypeResourceImpl.DataFrame resultNMTOKENS = nmtokens == null ? new XMLTypeResourceImpl.DataFrame() : nmtokens;

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   resultIDREFSBase | resultNMTOKENS | VARIABLE_NAME_MISMATCH
   idrefsBase | nmtokens | VARIABLE_NAME_MISMATCH
   idrefsBase | nmtokens | VARIABLE_NAME_MISMATCH

   1

       XMLTypeResourceImpl.DataFrame resultNMTOKENS = nmtokens == null ? new XMLTypeResourceImpl.DataFrame() : nmtokens;

   2

       idrefsBase = null;

   2 | idrefsBase = null;
   2 | nmtokens = null;

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   idrefsBase | nmtokens | VARIABLE_NAME_MISMATCH

   Preondition Violations
   Expression idrefsBase is a field being modified, and thus it cannot be parameterized
   Expression nmtokens is a field being modified, and thus it cannot be parameterized

   2

       nmtokens = null;

   3

       resultIDREFSBase.pushOnto(previous);

   3 | resultIDREFSBase.pushOnto(previous);
   3 | resultNMTOKENS.pushOnto(previous);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   resultIDREFSBase | resultNMTOKENS | VARIABLE_NAME_MISMATCH

   3

       resultNMTOKENS.pushOnto(previous);

   4

       resultIDREFSBase.handleAttributes(attributes);

   4 | resultIDREFSBase.handleAttributes(attributes);
   4 | resultNMTOKENS.handleAttributes(attributes);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   resultIDREFSBase | resultNMTOKENS | VARIABLE_NAME_MISMATCH

   4

       resultNMTOKENS.handleAttributes(attributes);

   5

       return resultIDREFSBase;

   5 | return resultIDREFSBase;
   5 | return resultNMTOKENS;

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   resultIDREFSBase | resultNMTOKENS | VARIABLE_NAME_MISMATCH

   5

       return resultNMTOKENS;

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