11327-3-4

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; }
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; }

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 isAllContainmentsCollectionModified()↵

1

    boolean isAllReferencesCollectionModified()↵

2

      {↵

2

      {↵

3

        return (modifiedState & CONTAINMENTS_MODIFIED) != 0;↵

3

        return (modifiedState & REFERENCES_MODIFIED) != 0;↵

4

      }↵

4

      }↵

5

      public void setAllContainmentsCollectionModified(boolean set)↵

5

      public void setAllReferencesCollectionModified(boolean set)↵

6

      {↵

6

      {↵

7

        if (set)↵

7

        if (set)↵

8

        {↵

8

        {↵

9

          modifiedState |= CONTAINMENTS_MODIFIED;↵

9

          modifiedState |= REFERENCES_MODIFIED;↵

10

        }↵

10

        }↵

11

        else↵

11

        else↵

12

        {↵

12

        {↵

13

          modifiedState &= ~CONTAINMENTS_MODIFIED;↵

13

          modifiedState &= ~REFERENCES_MODIFIED;↵

14

        }↵

14

        }↵

15

      }↵

15

      }↵

16

      public boolean isAllReferencesCollectionModified()↵

16

      public boolean isAllOperationsCollectionModified()↵

17

      {↵

17

      {↵

18

        return (modifiedState & REFERENCES_MODIFIED) != 0;↵

18

        return (modifiedState & OPERATIONS_MODIFIED) != 0;↵

19

      }

19

      }

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