protected boolean isSet; public UnsettableDelegateEObjectContainmentEList(Class<?> dataClass, InternalEObject owner, int featureID) { super(dataClass, owner, featureID); } @Override protected void didChange() { isSet = true; } @Override public boolean isSet() { return isSet; } @Override public void unset() { super.unset(); if (isNotificationRequired()) { boolean oldIsSet = isSet; isSet = false; owner.eNotify(createNotification(Notification.UNSET, oldIsSet, false)); } else { isSet = false;
protected boolean isSet; public Unsettable(Class<?> dataClass, InternalEObject owner, int featureID) { super(dataClass, owner, featureID); } @Override protected void didChange() { isSet = true; } @Override public boolean isSet() { return isSet; } @Override public void unset() { super.unset(); if (isNotificationRequired()) { boolean oldIsSet = isSet; isSet = false; owner.eNotify(createNotification(Notification.UNSET, oldIsSet, false)); } else { isSet = false;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreEMap.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EObjectEList.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
protected boolean isSet;
1
protected boolean isSet;
2
      public UnsettableDelegateEObjectContainmentEList(Class<?> dataClass, InternalEObject owner, int featureID)
2
    public Unsettable(Class<?> dataClass, InternalEObject owner, int featureID)
3
      {
3
    
4
  
4
{
5
      super(dataClass, owner, featureID);
5
      super(dataClass, owner, featureID);
6
      }
6
    }
7
      @Override
7
    @Override
8
      protected void didChange()
8
    protected void didChange()
9
      {
9
    
10
  
10
{
11
      isSet = true;
11
      isSet = true;
12
      }
12
    }
13
      @Override
13
    @Override
14
      public boolean isSet()
14
    public boolean isSet()
15
      {
15
    {
16
        return isSet;
16
      return isSet;
17
      }
17
    }
18
      @Override
18
    @Override
19
      public void unset()
19
    public void unset()
20
      {
20
    {
21
        super.unset();
21
      super.unset();
22
        if (isNotificationRequired())
22
      if (isNotificationRequired())
23
        {
23
      {
24
          boolean oldIsSet = isSet;
24
        boolean oldIsSet = isSet;
25
          isSet = false;
25
        isSet = false;
26
          owner.eNotify(createNotification(Notification.UNSET, oldIsSet, false));
26
        owner.eNotify(createNotification(Notification.UNSET, oldIsSet, false));
27
        }
27
      
28
  
28
}
29
      else
29
      else
30
        {
30
      
31
  
31
{
32
        isSet = false;
32
        isSet = false;
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