11613-1-2

case Notification.UNSET: { result.append("UNSET"); break; } case Notification.ADD: { result.append("ADD"); break; } case Notification.ADD_MANY: { result.append("ADD_MANY"); break; } case Notification.REMOVE: { result.append("REMOVE"); break; } case Notification.REMOVE_MANY: { result.append("REMOVE_MANY"); break; } case Notification.MOVE: { result.append("MOVE"); break; } case Notification.REMOVING_ADAPTER: { result.append("REMOVING_ADAPTER"); break; } case Notification.RESOLVE: { result.append("RESOLVE"); break;
case Notification.SET: { result.append("SET"); break; } case Notification.UNSET: { result.append("UNSET"); break; } case Notification.ADD: { result.append("ADD"); break; } case Notification.ADD_MANY: { result.append("ADD_MANY"); break; } case Notification.REMOVE: { result.append("REMOVE"); break; } case Notification.REMOVE_MANY: { result.append("REMOVE_MANY"); break; } case Notification.MOVE: { result.append("MOVE"); break; } case Notification.REMOVING_ADAPTER: { result.append("REMOVING_ADAPTER"); break;

Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/common/notify/impl/NotificationImpl.java |  | File path: /emf-2.4.1/src/org/eclipse/emf/common/notify/impl/NotificationImpl.java
Method name: `String toString()` |  | Method name: `String toString()`
Number of AST nodes: 24 |  | Number of AST nodes: 24

1

    case Notification.SET:↵

2

          {↵

3

            result.append("SET");↵

4

            break;↵

5

          }↵

1

    case Notification.UNSET:↵

6

          case Notification.UNSET:↵

2

          {↵

7

          {↵

3

            result.append("UNSET");↵

8

            result.append("UNSET");↵

4

            break;↵

9

            break;↵

5

          }↵

10

          }↵

6

          case Notification.ADD:↵

11

          case Notification.ADD:↵

7

          {↵

12

          {↵

8

            result.append("ADD");↵

13

            result.append("ADD");↵

9

            break;↵

14

            break;↵

10

          }↵

15

          }↵

11

          case Notification.ADD_MANY:↵

16

          case Notification.ADD_MANY:↵

12

          {↵

17

          {↵

13

            result.append("ADD_MANY");↵

18

            result.append("ADD_MANY");↵

14

            break;↵

19

            break;↵

15

          }↵

20

          }↵

16

          case Notification.REMOVE:↵

21

          case Notification.REMOVE:↵

17

          {↵

22

          {↵

18

            result.append("REMOVE");↵

23

            result.append("REMOVE");↵

19

            break;↵

24

            break;↵

20

          }↵

25

          }↵

21

          case Notification.REMOVE_MANY:↵

26

          case Notification.REMOVE_MANY:↵

22

          {↵

27

          {↵

23

            result.append("REMOVE_MANY");↵

28

            result.append("REMOVE_MANY");↵

24

            break;↵

29

            break;↵

25

          }↵

30

          }↵

26

          case Notification.MOVE:↵

31

          case Notification.MOVE:↵

27

          {↵

32

          {↵

28

            result.append("MOVE");↵

33

            result.append("MOVE");↵

29

            break;↵

34

            break;↵

30

          }↵

35

          }↵

31

          case Notification.REMOVING_ADAPTER:↵

36

          case Notification.REMOVING_ADAPTER:↵

32

          {↵

37

          {↵

33

            result.append("REMOVING_ADAPTER");↵

38

            result.append("REMOVING_ADAPTER");↵

34

            break;↵

39

            break;

35

          }↵

36

          case Notification.RESOLVE:↵

37

          {↵

38

            result.append("RESOLVE");↵

39

            break;

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

1. {Refactorable}

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

   7

       case Notification.UNSET:

   7

       case Notification.UNSET:

   8

       result.append("UNSET");

   8

       result.append("UNSET");

   9

       break;

   9

       break;

   10

       case Notification.ADD:

   10

       case Notification.ADD:

   11

       result.append("ADD");

   11

       result.append("ADD");

   12

       break;

   12

       break;

   13

       case Notification.ADD_MANY:

   13

       case Notification.ADD_MANY:

   14

       result.append("ADD_MANY");

   14

       result.append("ADD_MANY");

   15

       break;

   15

       break;

   16

       case Notification.REMOVE:

   16

       case Notification.REMOVE:

   17

       result.append("REMOVE");

   17

       result.append("REMOVE");

   18

       break;

   18

       break;

   19

       case Notification.REMOVE_MANY:

   19

       case Notification.REMOVE_MANY:

   20

       result.append("REMOVE_MANY");

   20

       result.append("REMOVE_MANY");

   21

       break;

   21

       break;

   22

       case Notification.MOVE:

   22

       case Notification.MOVE:

   23

       result.append("MOVE");

   23

       result.append("MOVE");

   24

       break;

   24

       break;

   25

       case Notification.REMOVING_ADAPTER:

   25

       case Notification.REMOVING_ADAPTER:

   26

       result.append("REMOVING_ADAPTER");

   26

       result.append("REMOVING_ADAPTER");

   27

       break;

   27

       break;

   28

       case Notification.RESOLVE:

   28 | case Notification.RESOLVE:
   4 | case Notification.SET:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   RESOLVE | SET | VARIABLE_NAME_MISMATCH

   4

       case Notification.SET:

   29

       result.append("RESOLVE");

   29 | result.append("RESOLVE");
   5 | result.append("SET");

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   "RESOLVE" | "SET" | LITERAL_VALUE_MISMATCH

   5

       result.append("SET");

   30

       break;

   6

       break;

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