2030-2-4

boolean isFactoryForType(Object object) { if (object == modelPackage) { return true; } if (object instanceof EObject) { return ((EObject)object).eClass().getEPackage() == modelPackage; } return false; } /** * The switch that delegates to the <code>createXXX</code> methods. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected EcoreSwitch<Adapter> modelSwitch =
boolean isFactoryForType(Object object) { if (object == modelPackage) { return true; } if (object instanceof EObject) { return ((EObject)object).eClass().getEPackage() == modelPackage; } return false; } /** * The switch that delegates to the <code>createXXX</code> methods. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected TreeSwitch<Adapter> modelSwitch =

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

1

    boolean isFactoryForType(Object object)↵

1

    boolean isFactoryForType(Object object)↵

2

      {↵

2

      {↵

3

        if (object == modelPackage)↵

3

        if (object == modelPackage)↵

4

        {↵

4

        {↵

5

          return true;↵

5

          return true;↵

6

        }↵

6

        }↵

7

        if (object instanceof EObject)↵

7

        if (object instanceof EObject)↵

8

        {↵

8

        {↵

9

          return ((EObject)object).eClass().getEPackage() == modelPackage;↵

9

          return ((EObject)object).eClass().getEPackage() == modelPackage;↵

10

        }↵

10

        }↵

11

        return false;↵

11

        return false;↵

12

      }↵

12

      }↵

13

      /**↵

13

      /**↵

14

       * The switch that delegates to the <code>createXXX</code> methods.↵

14

       * The switch that delegates to the <code>createXXX</code> methods.↵

15

       * <!-- begin-user-doc -->↵

15

       * <!-- begin-user-doc -->↵

16

       * <!-- end-user-doc -->↵

16

       * <!-- end-user-doc -->↵

17

       * @generated↵

17

       * @generated↵

18

       */↵

18

       */↵

19

      protected EcoreSwitch<Adapter> modelSwitch =

19

      protected TreeSwitch<Adapter> modelSwitch =

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