11326-1-2

boolean isAllAttributesCollectionModified() { return (modifiedState & ATTRIBUTES_MODIFIED) != 0; } public void setAllAttributesCollectionModified(boolean set) { if (set) { modifiedState |= ATTRIBUTES_MODIFIED; } else { modifiedState &= ~ATTRIBUTES_MODIFIED; } } public boolean isAllContainmentsCollectionModified() { return (modifiedState & CONTAINMENTS_MODIFIED) != 0; } public void setAllContainmentsCollectionModified(boolean set) { if (set) { modifiedState |= CONTAINMENTS_MODIFIED; } else { modifiedState &= ~CONTAINMENTS_MODIFIED; } } public boolean isAllReferencesCollectionModified() { return (modifiedState & REFERENCES_MODIFIED) != 0; } public void setAllReferencesCollectionModified(boolean set) { if (set) { modifiedState |= REFERENCES_MODIFIED; } else { modifiedState &= ~REFERENCES_MODIFIED; } } public boolean isAllOperationsCollectionModified() { return (modifiedState & OPERATIONS_MODIFIED) != 0; } public void setAllOperationsCollectionModified(boolean set) { if (set) { modifiedState |= OPERATIONS_MODIFIED; } else { modifiedState &= ~OPERATIONS_MODIFIED; } } public boolean isAllStructuralFeaturesCollectionModified() { return (modifiedState & STRUCTURAL_FEATURES_MODIFIED) != 0; } public void setAllStructuralFeaturesCollectionModified(boolean set) { if (set) { modifiedState |= STRUCTURAL_FEATURES_MODIFIED; } else { modifiedState &= ~STRUCTURAL_FEATURES_MODIFIED; } }
boolean isAllContainmentsCollectionModified() { return (modifiedState & CONTAINMENTS_MODIFIED) != 0; } public void setAllContainmentsCollectionModified(boolean set) { if (set) { modifiedState |= CONTAINMENTS_MODIFIED; } else { modifiedState &= ~CONTAINMENTS_MODIFIED; } } public boolean isAllReferencesCollectionModified() { return (modifiedState & REFERENCES_MODIFIED) != 0; } public void setAllReferencesCollectionModified(boolean set) { if (set) { modifiedState |= REFERENCES_MODIFIED; } else { modifiedState &= ~REFERENCES_MODIFIED; } } public boolean isAllOperationsCollectionModified() { return (modifiedState & OPERATIONS_MODIFIED) != 0; } public void setAllOperationsCollectionModified(boolean set) { if (set) { modifiedState |= OPERATIONS_MODIFIED; } else { modifiedState &= ~OPERATIONS_MODIFIED; } } public boolean isAllStructuralFeaturesCollectionModified() { return (modifiedState & STRUCTURAL_FEATURES_MODIFIED) != 0; } public void setAllStructuralFeaturesCollectionModified(boolean set) { if (set) { modifiedState |= STRUCTURAL_FEATURES_MODIFIED; } else { modifiedState &= ~STRUCTURAL_FEATURES_MODIFIED; } } public boolean isAllSuperCollectionModified() { return (modifiedState & SUPERS_MODIFIED) != 0; } public void setAllSuperCollectionModified(boolean set) { if (set) { modifiedState |= SUPERS_MODIFIED; } else { modifiedState &= ~SUPERS_MODIFIED; } }

Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/ESuperAdapter.java |  | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/ESuperAdapter.java
Method name: `` |  | Method name: ``
Number of AST nodes: 0 |  | Number of AST nodes: 0

1

    boolean isAllAttributesCollectionModified()↵

2

      {↵

3

        return (modifiedState & ATTRIBUTES_MODIFIED) != 0;↵

4

      }↵

5

      public void setAllAttributesCollectionModified(boolean set)↵

6

      {↵

7

        if (set)↵

8

        {↵

9

          modifiedState |= ATTRIBUTES_MODIFIED;↵

10

        }↵

11

        else↵

12

        {↵

13

          modifiedState &= ~ATTRIBUTES_MODIFIED;↵

14

        }↵

15

      }↵

16

      public boolean isAllContainmentsCollectionModified()↵

1

    boolean isAllContainmentsCollectionModified()↵

17

      {↵

2

      {↵

18

        return (modifiedState & CONTAINMENTS_MODIFIED) != 0;↵

3

        return (modifiedState & CONTAINMENTS_MODIFIED) != 0;↵

19

      }↵

4

      }↵

20

      public void setAllContainmentsCollectionModified(boolean set)↵

5

      public void setAllContainmentsCollectionModified(boolean set)↵

21

      {↵

6

      {↵

22

        if (set)↵

7

        if (set)↵

23

        {↵

8

        {↵

24

          modifiedState |= CONTAINMENTS_MODIFIED;↵

9

          modifiedState |= CONTAINMENTS_MODIFIED;↵

25

        }↵

10

        }↵

26

        else↵

11

        else↵

27

        {↵

12

        {↵

28

          modifiedState &= ~CONTAINMENTS_MODIFIED;↵

13

          modifiedState &= ~CONTAINMENTS_MODIFIED;↵

29

        }↵

14

        }↵

30

      }↵

15

      }↵

31

      public boolean isAllReferencesCollectionModified()↵

16

      public boolean isAllReferencesCollectionModified()↵

32

      {↵

17

      {↵

33

        return (modifiedState & REFERENCES_MODIFIED) != 0;↵

18

        return (modifiedState & REFERENCES_MODIFIED) != 0;↵

34

      }↵

19

      }↵

35

      public void setAllReferencesCollectionModified(boolean set)↵

20

      public void setAllReferencesCollectionModified(boolean set)↵

36

      {↵

21

      {↵

37

        if (set)↵

22

        if (set)↵

38

        {↵

23

        {↵

39

          modifiedState |= REFERENCES_MODIFIED;↵

24

          modifiedState |= REFERENCES_MODIFIED;↵

40

        }↵

25

        }↵

41

        else↵

26

        else↵

42

        {↵

27

        {↵

43

          modifiedState &= ~REFERENCES_MODIFIED;↵

28

          modifiedState &= ~REFERENCES_MODIFIED;↵

44

        }↵

29

        }↵

45

      }↵

30

      }↵

46

      public boolean isAllOperationsCollectionModified()↵

31

      public boolean isAllOperationsCollectionModified()↵

47

      {↵

32

      {↵

48

        return (modifiedState & OPERATIONS_MODIFIED) != 0;↵

33

        return (modifiedState & OPERATIONS_MODIFIED) != 0;↵

49

      }↵

34

      }↵

50

      public void setAllOperationsCollectionModified(boolean set)↵

35

      public void setAllOperationsCollectionModified(boolean set)↵

51

      {↵

36

      {↵

52

        if (set)↵

37

        if (set)↵

53

        {↵

38

        {↵

54

          modifiedState |= OPERATIONS_MODIFIED;↵

39

          modifiedState |= OPERATIONS_MODIFIED;↵

55

        }↵

40

        }↵

56

        else↵

41

        else↵

57

        {↵

42

        {↵

58

          modifiedState &= ~OPERATIONS_MODIFIED;↵

43

          modifiedState &= ~OPERATIONS_MODIFIED;↵

59

        }↵

44

        }↵

60

      }↵

45

      }↵

61

      public boolean isAllStructuralFeaturesCollectionModified()↵

46

      public boolean isAllStructuralFeaturesCollectionModified()↵

62

      {↵

47

      {↵

63

        return (modifiedState & STRUCTURAL_FEATURES_MODIFIED) != 0;↵

48

        return (modifiedState & STRUCTURAL_FEATURES_MODIFIED) != 0;↵

64

      }↵

49

      }↵

65

      public void setAllStructuralFeaturesCollectionModified(boolean set)↵

50

      public void setAllStructuralFeaturesCollectionModified(boolean set)↵

66

      {↵

51

      {↵

67

        if (set)↵

52

        if (set)↵

68

        {↵

53

        {↵

69

          modifiedState |= STRUCTURAL_FEATURES_MODIFIED;↵

54

          modifiedState |= STRUCTURAL_FEATURES_MODIFIED;↵

70

        }↵

55

        }↵

71

        else↵

56

        else↵

72

        {↵

57

        {↵

73

          modifiedState &= ~STRUCTURAL_FEATURES_MODIFIED;↵

58

          modifiedState &= ~STRUCTURAL_FEATURES_MODIFIED;↵

74

        }↵

59

        }↵

75

      }

60

      }↵

61

      public boolean isAllSuperCollectionModified()↵

62

      {↵

63

        return (modifiedState & SUPERS_MODIFIED) != 0;↵

64

      } ↵

65

      public void setAllSuperCollectionModified(boolean set)↵

66

      {↵

67

        if (set)↵

68

        {↵

69

          modifiedState |= SUPERS_MODIFIED;↵

70

        }↵

71

        else↵

72

        {↵

73

          modifiedState &= ~SUPERS_MODIFIED;↵

74

        }↵

75

      }

See real code fragment |  | See real code fragment

Summary
Number of common nesting structure subtrees | 0
Number of refactorable cases | 0
Number of non-refactorable cases | 0
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0
Clones location |
Number of node comparisons | 0