public static class InternalSettingDelegateSingleDataDynamic extends InternalSettingDelegateSingleData { protected EDataType eDataType; public InternalSettingDelegateSingleDataDynamic(EDataType eDataType, Object defaultValue, Object intrinsicDefaultValue, EStructuralFeature feature) { super(defaultValue, intrinsicDefaultValue, feature); this.eDataType = eDataType; } @Override protected void validate(Object object) { if (!eDataType.isInstance(object)) { throw new ClassCastException("The value of type '" + object.getClass() + "' must be of type '" + eDataType + "'");
public static class InternalSettingDelegateSingleDataUnsettableDynamic extends InternalSettingDelegateSingleDataUnsettable { protected EDataType eDataType; public InternalSettingDelegateSingleDataUnsettableDynamic(EDataType eDataType, Object defaultValue, Object intrinsicDefaultValue, EStructuralFeature feature) { super(defaultValue, intrinsicDefaultValue, feature); this.eDataType = eDataType; } @Override protected void validate(Object object) { if (!eDataType.isInstance(object)) { throw new ClassCastException("The value of type '" + object.getClass() + "' must be of type '" + eDataType + "'");
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EStructuralFeatureImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EStructuralFeatureImpl.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public static class InternalSettingDelegateSingleDataDynamic extends InternalSettingDelegateSingleData
1
public static class InternalSettingDelegateSingleDataUnsettableDynamic extends InternalSettingDelegateSingleDataUnsettable
2
  {
2
  {
3
    protected EDataType eDataType;
3
    protected EDataType eDataType;
4
    public InternalSettingDelegateSingleDataDynamic(EDataType eDataType, Object defaultValue, Object intrinsicDefaultValue, EStructuralFeature feature)
4
    public InternalSettingDelegateSingleDataUnsettableDynamic(EDataType eDataType, Object defaultValue, Object intrinsicDefaultValue, EStructuralFeature feature)
5
    {
5
    {
6
      super(defaultValue, intrinsicDefaultValue, feature);
6
      super(defaultValue, intrinsicDefaultValue, feature);
7
      this.eDataType = eDataType;
7
      this.eDataType = eDataType;
8
    }
8
    }
9
    @Override
9
    @Override
10
    protected void validate(Object object)
10
    protected void validate(Object object)
11
    {
11
    {
12
      if (!eDataType.isInstance(object))
12
      if (!eDataType.isInstance(object))
13
      {
13
      {
14
        throw new ClassCastException("The value of type '" + object.getClass() + "' must be of type '" + eDataType + "'");
14
        throw new ClassCastException("The value of type '" + object.getClass() + "' must be of type '" + eDataType + "'");
15
      
15
      
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0