public void addListener(INotifyChangedListener notifyChangedListener) { changeNotifier.add(notifyChangedListener); } public void removeListener(INotifyChangedListener notifyChangedListener) { changeNotifier.remove(notifyChangedListener); } public void fireNotifyChanged(Notification notification) { changeNotifier.fireNotifyChanged(notification); if (parentAdapterFactory != null) { parentAdapterFactory.fireNotifyChanged(notification);
public void addListener(INotifyChangedListener notifyChangedListener) { changeNotifier.addListener(notifyChangedListener); } public void removeListener(INotifyChangedListener notifyChangedListener) { changeNotifier.removeListener(notifyChangedListener); } public void fireNotifyChanged(Notification notification) { changeNotifier.fireNotifyChanged(notification); if (parentAdapterFactory != null) { parentAdapterFactory.fireNotifyChanged(notification);
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/edit/provider/ComposedAdapterFactory.java File path: /emf-2.4.1/src/org/eclipse/emf/edit/provider/DecoratorAdapterFactory.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void addListener(INotifyChangedListener notifyChangedListener)
1
public void addListener(INotifyChangedListener notifyChangedListener)
2
  {
2
  {
3
    changeNotifier.add(notifyChangedListener);
3
    changeNotifier.addListener(notifyChangedListener);
4
  }
4
  }
5
  public void removeListener(INotifyChangedListener notifyChangedListener)
5
  public void removeListener(INotifyChangedListener notifyChangedListener)
6
  {
6
  {
7
    changeNotifier.remove(notifyChangedListener);
7
    changeNotifier.removeListener(notifyChangedListener);
8
  }
8
  }
9
  public void fireNotifyChanged(Notification notification)
9
  public void fireNotifyChanged(Notification notification)
10
  {
10
  {
11
    changeNotifier.fireNotifyChanged(notification);
11
    changeNotifier.fireNotifyChanged(notification);
12
    if (parentAdapterFactory != null)
12
    if (parentAdapterFactory != null)
13
    {
13
    {
14
      parentAdapterFactory.fireNotifyChanged(notification);
14
      parentAdapterFactory.fireNotifyChanged(notification);
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