11703-1-2

result = prime * result + ((m_fragment == null) ? 0 : m_fragment.hashCode()); result = prime * result + ((m_host == null) ? 0 : m_host.hashCode());
result = prime * result + ((m_host == null) ? 0 : m_host.hashCode()); result = prime * result + ((m_path == null) ? 0 : m_path.hashCode());

Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/DataValue.java |  | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/DataValue.java
Method name: `int hashCode()` |  | Method name: `int hashCode()`
Number of AST nodes: 2 |  | Number of AST nodes: 2

1

    result = prime * result + ((m_fragment == null) ? 0 : m_fragment.hashCode());↵

1

    result = prime * result + ((m_host == null) ? 0 : m_host.hashCode());↵

2

        result = prime * result + ((m_host == null) ? 0 : m_host.hashCode());

2

        result = prime * result + ((m_path == null) ? 0 : m_path.hashCode());

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

1. {Refactorable}

   Mapping Summary
   Number of mapped statements | 2
   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
   --- | --- | --- | --- | ---

   3

       result = prime * result + ((m_fragment == null) ? 0 : m_fragment.hashCode());

   3 | result = prime * result + ((m_fragment == null) ? 0 : m_fragment.hashCode());
   4 | result = prime * result + ((m_host == null) ? 0 : m_host.hashCode());

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   m_fragment | m_host | VARIABLE_NAME_MISMATCH
   m_fragment | m_host | VARIABLE_NAME_MISMATCH

   4

       result = prime * result + ((m_host == null) ? 0 : m_host.hashCode());

   4

       result = prime * result + ((m_host == null) ? 0 : m_host.hashCode());

   4 | result = prime * result + ((m_host == null) ? 0 : m_host.hashCode());
   5 | result = prime * result + ((m_path == null) ? 0 : m_path.hashCode());

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   m_host | m_path | VARIABLE_NAME_MISMATCH
   m_host | m_path | VARIABLE_NAME_MISMATCH

   5

       result = prime * result + ((m_path == null) ? 0 : m_path.hashCode());

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