11327-1-4

boolean eDeliver() { return (eFlags & EDELIVER) != 0; } /* * Javadoc copied from interface. */ @Override public void eSetDeliver(boolean deliver) { if (deliver) { eFlags |= EDELIVER; } else { eFlags &= ~EDELIVER; } } /* * @see org.eclipse.emf.ecore.EObject#eIsProxy() */ @Override public boolean eIsProxy() { return (eFlags & EPROXY) != 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/EObjectImpl.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 eDeliver()↵

1

    boolean ↵

2

      {↵

3

        return (eFlags & EDELIVER↵

2

    isAllReferencesCollectionModified()↵

3

      {↵

4

    ) != 0;↵

4

        return (modifiedState & REFERENCES_MODIFIED) != 0;↵

5

      }↵

5

      }↵

6

      /*↵

6

      ↵

7

       * Javadoc copied from interface.↵

8

       */↵

9

      @Override↵

10

      public void eSetDeliver(boolean deliver)↵

7

    public void setAllReferencesCollectionModified(boolean set)↵

11

      {↵

8

      {↵

12

        if (deliver)↵

9

        if (set)↵

13

        {↵

10

        {↵

14

          eFlags |= EDELIVER;↵

11

          modifiedState |= REFERENCES_MODIFIED;↵

15

        }↵

12

        }↵

16

        else↵

13

        else↵

17

        {↵

14

        {↵

18

          eFlags &= ~EDELIVER;↵

15

          ↵

19

        }↵

20

      }↵

21

      /* ↵

22

       * @see org.eclipse.emf.ecore.EObject#eIsProxy()↵

23

       */↵

24

      @Override↵

25

      public boolean eIsProxy↵

16

    modifiedState &= ~REFERENCES_MODIFIED;↵

17

        }↵

18

      }↵

26

    ()↵

19

      public boolean isAllOperationsCollectionModified()↵

27

      {↵

20

      {↵

28

        return (eFlags & EPROXY) != 0;↵

21

        return (modifiedState & OPERATIONS_MODIFIED) != 0;↵

29

      }

22

      }

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