1456-3-4

void addListener(INotifyChangedListener listener) { if (changeNotifier == null) { changeNotifier = new ChangeNotifier(); } changeNotifier.addListener(listener); } public void removeListener(INotifyChangedListener listener) { if (changeNotifier != null) { changeNotifier.removeListener(listener); } }
void addListener(INotifyChangedListener listener) { if (changeNotifier == null) { changeNotifier = new ChangeNotifier(); } changeNotifier.addListener(listener); } /** * Removes a notification listener. */ public void removeListener(INotifyChangedListener listener) { if (changeNotifier != null) { changeNotifier.removeListener(listener); } }

Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/edit/provider/ItemProviderDecorator.java |  | File path: /emf-2.4.1/src/org/eclipse/emf/edit/provider/DelegatingWrapperItemProvider.java
Method name: `` |  | Method name: ``
Number of AST nodes: 0 |  | Number of AST nodes: 0

1

    void addListener(INotifyChangedListener listener)↵

1

    void addListener(INotifyChangedListener listener)↵

2

      {↵

2

      {↵

3

        if (changeNotifier == null)↵

3

        if (changeNotifier == null)↵

4

        {↵

4

        {↵

5

          changeNotifier = new ChangeNotifier();↵

5

          changeNotifier = new ChangeNotifier();↵

6

        }↵

6

        }↵

7

        changeNotifier.addListener(listener);↵

7

        changeNotifier.addListener(listener);↵

8

      }↵

8

      }↵

9

      /**↵

10

       * Removes a notification listener.↵

11

       */↵

9

      public void removeListener(INotifyChangedListener listener)↵

12

      public void removeListener(INotifyChangedListener listener)↵

10

      {↵

13

      {↵

11

        if (changeNotifier != null)↵

14

        if (changeNotifier != null)↵

12

        {↵

15

        {↵

13

          changeNotifier.removeListener(listener);↵

16

          changeNotifier.removeListener(listener);↵

14

        }↵

17

        }↵

15

      }

18

      }

See real code fragment |  | See real code fragment

Summary
Number of common nesting structure subtrees | 0
Number of refactorable cases | 0
Number of non-refactorable cases | 0
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0
Clones location |
Number of node comparisons | 0