1608-5-7

protected void notifyListeners(DialLayerChangeEvent event) { Object[] listeners = this.listenerList.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == DialLayerChangeListener.class) { ((DialLayerChangeListener) listeners[i + 1]).dialLayerChanged( event);
protected void notifyListeners(DatasetChangeEvent event) { Object[] listeners = this.listenerList.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == DatasetChangeListener.class) { ((DatasetChangeListener) listeners[i + 1]).datasetChanged( event

Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/dial/AbstractDialLayer.java |  | File path: /jfreechart-1.0.10/src/org/jfree/data/general/AbstractDataset.java
Method name: `` |  | Method name: ``
Number of AST nodes: 0 |  | Number of AST nodes: 0

1

    protected void notifyListeners(DialLayerChangeEvent event) {↵

1

    protected void notifyListeners(DatasetChangeEvent event) {↵

2

            Object[] listeners = this.listenerList.getListenerList();↵

2

            Object[] listeners = this.listenerList.getListenerList();↵

3

            for (int i = listeners.length - 2; i >= 0; i -= 2) {↵

3

            for (int i = listeners.length - 2; i >= 0; i -= 2) {↵

4

                if (listeners[i] == DialLayerChangeListener.class) {↵

4

                if (listeners[i] == DatasetChangeListener.class) {↵

5

                    ((DialLayerChangeListener) listeners[i + 1]).dialLayerChanged(↵

5

                    ((DatasetChangeListener) listeners[i + 1]).datasetChanged(↵

6

                            event);↵

6

                        event↵

7

7

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