11792-1-2

bytes[receivedBytes++] = (byte)character; expectedBytes = 2; } else if ((character & 0xF0) == 0xE0) { bytes[receivedBytes++] = (byte)character; expectedBytes = 3;
if ((character & 0xF0) == 0xE0) { bytes[receivedBytes++] = (byte)character; expectedBytes = 3; } else if ((character & 0xF8) == 0xF0) { bytes[receivedBytes++] = (byte)character; expectedBytes = 4; }

Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/common/util/URI.java |  | File path: /emf-2.4.1/src/org/eclipse/emf/common/util/URI.java
Method name: `String decode(String)` |  | Method name: `String decode(String)`
Number of AST nodes: 4 |  | Number of AST nodes: 6

1

    if ((character & 0xF0) == 0xE0)↵

2

                {↵

1

    bytes[receivedBytes++] = (byte)character;↵

3

                  bytes[receivedBytes++] = (byte)character;↵

2

                  expectedBytes = 2;↵

4

                  expectedBytes = 3;↵

3

                }↵

5

                }↵

4

                else if ((character & 0xF0) == 0xE0)↵

6

                else if ((character & 0xF8) == 0xF0)↵

5

                {↵

7

                {↵

6

                  bytes[receivedBytes++] = (byte)character;↵

8

                  bytes[receivedBytes++] = (byte)character;↵

7

                  expectedBytes = 3;

9

                  expectedBytes = 4;↵

10

                }

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 the same method
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
   --- | ---