1266-1-2

int eStaticFeatureCount() { return 0; } @Override public int eDerivedStructuralFeatureID(EStructuralFeature eStructuralFeature) { return eClass().getFeatureID(eStructuralFeature); } @Override protected BasicEObjectImpl.EPropertiesHolder eProperties() { if (eProperties == null) { eProperties = new DynamicEPropertiesHolderImpl(); } return eProperties; } @Override protected boolean eHasSettings() { return eSettings != null; } @Override protected EStructuralFeature.Internal.DynamicValueHolder eSettings() { if (eSettings == null) { int size = eClass().getFeatureCount() - eStaticFeatureCount(); eSettings = size == 0 ? ENO_SETTINGS : new Object [size]; } return this; }
int eStaticFeatureCount() { return 0; } @Override public int eDerivedStructuralFeatureID(EStructuralFeature eStructuralFeature) { return eClass().getFeatureID(eStructuralFeature); } @Override protected BasicEObjectImpl.EPropertiesHolder eProperties() { if (eProperties == null) { eProperties = new EStoreEPropertiesHolderImpl(); } return eProperties; } @Override protected boolean eHasSettings() { return eSettings != null; } @Override protected EStructuralFeature.Internal.DynamicValueHolder eSettings() { if (eSettings == null) { int size = eClass().getFeatureCount() - eStaticFeatureCount(); eSettings = size == 0 ? ENO_SETTINGS : new Object [size]; } return this; }

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

1

    int eStaticFeatureCount()↵

1

    int eStaticFeatureCount()↵

2

      {↵

2

      {↵

3

        return 0;↵

3

        return 0;↵

4

      }↵

4

      }↵

5

      @Override↵

5

      @Override↵

6

      public int eDerivedStructuralFeatureID(EStructuralFeature eStructuralFeature)↵

6

      public int eDerivedStructuralFeatureID(EStructuralFeature eStructuralFeature)↵

7

      {↵

7

      {↵

8

        return eClass().getFeatureID(eStructuralFeature);↵

8

        return eClass().getFeatureID(eStructuralFeature);↵

9

      }↵

9

      }↵

10

      @Override↵

10

      @Override↵

11

      protected BasicEObjectImpl.EPropertiesHolder eProperties()↵

11

      protected BasicEObjectImpl.EPropertiesHolder eProperties()↵

12

      {↵

12

      {↵

13

        if (eProperties == null)↵

13

        if (eProperties == null)↵

14

        {↵

14

        {↵

15

          eProperties = new DynamicEPropertiesHolderImpl();↵

15

          eProperties = new EStoreEPropertiesHolderImpl();↵

16

        }↵

16

        }↵

17

        return eProperties;↵

17

        return eProperties;↵

18

      }↵

18

      }↵

19

      @Override↵

19

      @Override↵

20

      protected boolean eHasSettings()↵

20

      protected boolean eHasSettings()↵

21

      {↵

21

      {↵

22

        return eSettings != null;↵

22

        return eSettings != null;↵

23

      }↵

23

      }↵

24

      @Override↵

24

      @Override↵

25

      protected EStructuralFeature.Internal.DynamicValueHolder eSettings()↵

25

      protected EStructuralFeature.Internal.DynamicValueHolder eSettings()↵

26

      {↵

26

      {↵

27

        if (eSettings == null)↵

27

        if (eSettings == null)↵

28

        {↵

28

        {↵

29

          int size = eClass().getFeatureCount() - eStaticFeatureCount();↵

29

          int size = eClass().getFeatureCount() - eStaticFeatureCount();↵

30

          eSettings = size == 0 ? ENO_SETTINGS : new Object [size];↵

30

          eSettings = size == 0 ? ENO_SETTINGS : new Object [size];↵

31

        }↵

31

        }↵

32

        return this;↵

32

        return this;↵

33

      }

33

      }

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