1896-1-3

Map<String, EObject> getIDToEObjectMap() { if (idToEObjectMap == null) { idToEObjectMap = new HashMap<String, EObject>(); } return idToEObjectMap; } public Map<EObject, String> getEObjectToIDMap() { if (eObjectToIDMap == null) { eObjectToIDMap = new HashMap<EObject, String>(); } return eObjectToIDMap; }
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/ecore/xmi/impl/XMLResourceImpl.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<String, EObject> getIDToEObjectMap()↵

1

    Map<EObject, String> getEObjectToIDMap()↵

2

      {↵

2

      {↵

3

        if (idToEObjectMap == null)↵

3

        if (eObjectToIDMap == null)↵

4

        {↵

4

        {↵

5

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

5

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

6

        }↵

6

        }↵

7

        return idToEObjectMap;↵

7

        return eObjectToIDMap;↵

8

      }↵

8

      }↵

9

      public Map<EObject, String> getEObjectToIDMap()↵

9

      public Map<EObject, AnyType> getEObjectToExtensionMap()↵

10

      {↵

10

      {↵

11

        if (eObjectToIDMap == null)↵

11

        if (eObjectToExtensionMap == null)↵

12

        {↵

12

        {↵

13

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

13

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

14

        }↵

14

        }↵

15

        return eObjectToIDMap;↵

15

        return eObjectToExtensionMap;↵

16

      }

16

      }

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