10213-1-2

decodedAction.message = ACTION_MESSAGE_SET_ERROR; } else if (ACTION_MESSAGE_SET_TYPED == (decodedAction.message & ACTION_MESSAGE_SET_TYPED)) { decodedAction.message = ACTION_MESSAGE_SET_TYPED; } else if (ACTION_MESSAGE_SET == (decodedAction.message & ACTION_MESSAGE_SET)) { decodedAction.message = ACTION_MESSAGE_SET;
decodedAction.message = ACTION_MESSAGE_SET_TYPED; } else if (ACTION_MESSAGE_SET == (decodedAction.message & ACTION_MESSAGE_SET)) { decodedAction.message = ACTION_MESSAGE_SET; } else if (ACTION_MESSAGE_NONE == (decodedAction.message & ACTION_MESSAGE_NONE)) { decodedAction.message = ACTION_MESSAGE_NONE;

Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/converter/util/ConverterUtil.java |  | File path: /emf-2.4.1/src/org/eclipse/emf/converter/util/ConverterUtil.java
Method name: `DecodedAction decodeAction(int)` |  | Method name: `DecodedAction decodeAction(int)`
Number of AST nodes: 3 |  | Number of AST nodes: 3

1

    decodedAction.message = ACTION_MESSAGE_SET_ERROR;↵

1

    decodedAction.message = ACTION_MESSAGE_SET_TYPED;↵

2

        }↵

2

        }↵

3

        else if (ACTION_MESSAGE_SET_TYPED == (decodedAction.message & ACTION_MESSAGE_SET_TYPED))↵

3

        else if (ACTION_MESSAGE_SET == (decodedAction.message & ACTION_MESSAGE_SET))↵

4

        {↵

4

        {↵

5

          decodedAction.message = ACTION_MESSAGE_SET_TYPED;↵

5

          decodedAction.message = ACTION_MESSAGE_SET;↵

6

        }↵

6

        }↵

7

        else if (ACTION_MESSAGE_SET == (decodedAction.message & ACTION_MESSAGE_SET))↵

7

        else if (ACTION_MESSAGE_NONE == (decodedAction.message & ACTION_MESSAGE_NONE))↵

8

        {↵

8

        {↵

9

          decodedAction.message = ACTION_MESSAGE_SET;

9

          decodedAction.message = ACTION_MESSAGE_NONE;

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

1. {Refactorable}

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

   4

       decodedAction.message = ACTION_MESSAGE_SET_ERROR;

   4 | decodedAction.message = ACTION_MESSAGE_SET_ERROR;
   6 | decodedAction.message = ACTION_MESSAGE_SET_TYPED;

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   ACTION_MESSAGE_SET_ERROR | ACTION_MESSAGE_SET_TYPED | VARIABLE_NAME_MISMATCH

   6

       decodedAction.message = ACTION_MESSAGE_SET_TYPED;

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