1897-2-5

Adapter createXMLInfoAdapter() { if (xmlInfoItemProvider == null) { xmlInfoItemProvider = new XMLInfoItemProvider(this); } return xmlInfoItemProvider; } /** * This keeps track of the one adapter used for all {@link org.eclipse.emf.mapping.ecore2xml.XMLMap} instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected XMLMapItemProvider xmlMapItemProvider; /** * This creates an adapter for a {@link org.eclipse.emf.mapping.ecore2xml.XMLMap}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Adapter createXMLMapAdapter() { if (xmlMapItemProvider == null) { xmlMapItemProvider = new XMLMapItemProvider(this); } return xmlMapItemProvider; }
Adapter createEGenericTypeAdapter() { if (eGenericTypeItemProvider == null) { eGenericTypeItemProvider = new EGenericTypeItemProvider(this); } return eGenericTypeItemProvider; } /** * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.ETypeParameter} instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected ETypeParameterItemProvider eTypeParameterItemProvider; /** * This creates an adapter for a {@link org.eclipse.emf.ecore.ETypeParameter}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Adapter createETypeParameterAdapter() { if (eTypeParameterItemProvider == null) { eTypeParameterItemProvider = new ETypeParameterItemProvider(this); } return eTypeParameterItemProvider; }

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

1

    Adapter createXMLInfoAdapter()↵

1

    Adapter createEGenericTypeAdapter()↵

2

      {↵

2

      {↵

3

        if (xmlInfoItemProvider == null)↵

3

        if (eGenericTypeItemProvider == null)↵

4

        {↵

4

        {↵

5

          xmlInfoItemProvider = new XMLInfoItemProvider(this);↵

5

          eGenericTypeItemProvider = new EGenericTypeItemProvider(this);↵

6

        }↵

6

        }↵

7

        return xmlInfoItemProvider;↵

7

        return eGenericTypeItemProvider;↵

8

      }↵

8

      }↵

9

      /**↵

9

      /**↵

10

       * This keeps track of the one adapter used for all {@link org.eclipse.emf.mapping.ecore2xml.XMLMap} instances.↵

10

       * This keeps track of the one adapter used for all {@link org.eclipse.emf.ecore.ETypeParameter} instances.↵

11

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

11

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

12

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

12

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

13

       * @generated↵

13

       * @generated↵

14

       */↵

14

       */↵

15

      protected XMLMapItemProvider xmlMapItemProvider;↵

15

      protected ETypeParameterItemProvider eTypeParameterItemProvider;↵

16

      /**↵

16

      /**↵

17

       * This creates an adapter for a {@link org.eclipse.emf.mapping.ecore2xml.XMLMap}.↵

17

       * This creates an adapter for a {@link org.eclipse.emf.ecore.ETypeParameter}.↵

18

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

18

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

19

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

19

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

20

       * @generated↵

20

       * @generated↵

21

       */↵

21

       */↵

22

      @Override↵

22

      @Override↵

23

      public Adapter createXMLMapAdapter()↵

23

      public Adapter createETypeParameterAdapter()↵

24

      {↵

24

      {↵

25

        if (xmlMapItemProvider == null)↵

25

        if (eTypeParameterItemProvider == null)↵

26

        {↵

26

        {↵

27

          xmlMapItemProvider = new XMLMapItemProvider(this);↵

27

          eTypeParameterItemProvider = new ETypeParameterItemProvider(this);↵

28

        }↵

28

        }↵

29

        return xmlMapItemProvider;↵

29

        return eTypeParameterItemProvider;↵

30

      }

30

      }

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