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;
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/EDataTypeEList.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 Unsettable(Class<?> dataClass, InternalEObject owner, int featureID)
2
    public Unsettable(Class<?> dataClass, InternalEObject owner, int featureID)
3
    {
3
    {
4
      super(dataClass, owner, featureID);
4
      super(dataClass, owner, featureID);
5
    }
5
    }
6
    @Override
6
    @Override
7
    protected void didChange()
7
    protected void didChange()
8
    {
8
    {
9
      isSet = true;
9
      isSet = true;
10
    }
10
    }
11
    @Override
11
    @Override
12
    public boolean isSet()
12
    public boolean isSet()
13
    {
13
    {
14
      return isSet;
14
      return isSet;
15
    }
15
    }
16
    @Override
16
    @Override
17
    public void unset()
17
    public void unset()
18
    {
18
    {
19
      super.unset();
19
      super.unset();
20
      if (isNotificationRequired())
20
      if (isNotificationRequired())
21
      {
21
      {
22
        boolean oldIsSet = isSet;
22
        boolean oldIsSet = isSet;
23
        isSet = false;
23
        isSet = false;
24
        owner.eNotify(createNotification(Notification.UNSET, oldIsSet, false));
24
        owner.eNotify(createNotification(Notification.UNSET, oldIsSet, false));
25
      }
25
      }
26
      else
26
      else
27
      {
27
      {
28
        isSet = false;
28
        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