1896-2-3

Map<EPackage, GenPackage> getEPackageToGenPackageMap() { if (ePackageToGenPackageMap == null) { ePackageToGenPackageMap = new HashMap<EPackage, GenPackage>(); } return ePackageToGenPackageMap; } protected Map<GenBase, EMap<String, String>> getGenBaseToGenAnnotationDetailsMap() { if (genBaseToDetailsMap == null) { genBaseToDetailsMap = new HashMap<GenBase, EMap<String, String>>(); } return genBaseToDetailsMap; }
Map<EObject, String> getEObjectToIDMap() { if (eObjectToIDMap == null) { eObjectToIDMap = new HashMap<EObject, String>(); } return eObjectToIDMap; } public Map<EObject, AnyType> getEObjectToExtensionMap() { if (eObjectToExtensionMap == null) { eObjectToExtensionMap = new HashMap<EObject, AnyType>(); } return eObjectToExtensionMap; }

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

1

    Map<EPackage, GenPackage> getEPackageToGenPackageMap()↵

1

    Map<E↵

2

      {↵

3

        if (ePackageToGenPackage↵

2

    Object, String> getEObjectToIDMap()↵

3

      {↵

4

    Map == null)↵

4

        if (eObjectToIDMap == null)↵

5

        {↵

5

        {↵

6

          ePackageToGenPackageMap = new HashMap<EPackage, GenPackage>();↵

6

          eObjectToIDMap = new HashMap<EObject, String>();↵

7

        }↵

7

        }↵

8

        return ePackageToGenPackageMap;↵

8

        return e↵

9

      }↵

10

      protected Map<GenBase, EMap<String, String>> getGenBaseToGenAnnotationDetailsMap()↵

11

      {↵

12

        if (genBaseToDetails↵

9

    ObjectToIDMap;↵

10

      }↵

11

      public Map<EObject, AnyType> getEObjectToExtensionMap()↵

12

      {↵

13

    Map == null)↵

13

        if (eObjectToExtensionMap == null)↵

14

        {↵

14

        {↵

15

          genBaseToDetailsMap = new HashMap<GenBase, EMap<String, String>>();↵

15

          eObjectToExtensionMap = new HashMap<EObject, AnyType>();↵

16

        }↵

16

        }↵

17

        return genBaseToDetailsMap;↵

17

        return eObjectToExtensionMap;↵

18

      }

18

      }

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