super.unset(); if (isNotificationRequired()) { boolean oldIsSet = isSet; isSet = false; owner.eNotify(createNotification(Notification.UNSET, oldIsSet, false)); } else { isSet = false; }
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: void unset() Method name: void unset()
Number of AST nodes: 6 Number of AST nodes: 6
1
super.unset();
1
super.unset();
2
        if (isNotificationRequired())
2
      if (isNotificationRequired())
3
        {
3
      {
4
          boolean oldIsSet = isSet;
4
        boolean oldIsSet = isSet;
5
          isSet = false;
5
        isSet = false;
6
          owner.eNotify(createNotification(Notification.UNSET, oldIsSet, false));
6
        owner.eNotify(createNotification(Notification.UNSET, oldIsSet, false));
7
        }
7
      
8
  
8
}
9
      else
9
      else
10
        {
10
      {
11
          isSet = false;
11
        isSet = false;
12
        }
12
      }
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are in different classes having the same super class
Number of node comparisons26
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements6
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.2
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    1
    super.unset();
    1
    super.unset();
    2
    if (isNotificationRequired())
    2
    if (isNotificationRequired())
    3
    boolean oldIsSet = isSet;
    3
    boolean oldIsSet = isSet;
    4
    isSet = false;
    4
    isSet = false;
    5
    owner.eNotify(createNotification(Notification.UNSET, oldIsSet, false));
    5
    owner.eNotify(createNotification(Notification.UNSET, oldIsSet, false));
    else
    else
    6
    isSet = false;
    6
    isSet = false;
    Precondition Violations (0)
    Row Violation