1608-1-2

protected void notifyListeners(ChartProgressEvent event) { Object[] listeners = this.progressListeners.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == ChartProgressListener.class) { ((ChartProgressListener) listeners[i + 1]).chartProgress(event);
protected void notifyListeners(AxisChangeEvent event) { Object[] listeners = this.listenerList.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == AxisChangeListener.class) { ((AxisChangeListener) listeners[i + 1]).axisChanged(event);

Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/JFreeChart.java |  | File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/Axis.java
Method name: `` |  | Method name: ``
Number of AST nodes: 0 |  | Number of AST nodes: 0

1

    protected void notifyListeners(ChartProgressEvent event) {↵

1

    protected void notifyListeners(AxisChangeEvent event) {↵

2

            Object[] listeners = this.progressListeners.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] == ChartProgressListener.class) {↵

4

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

5

                    ((ChartProgressListener) listeners[i + 1]).chartProgress(event);↵

5

                    ((AxisChangeListener) listeners[i + 1]).axisChanged(event);↵

6

6

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