1608-3-6

public void notifyListeners(MarkerChangeEvent event) { Object[] listeners = this.listenerList.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == MarkerChangeListener.class) { ((MarkerChangeListener) listeners[i + 1]).markerChanged(event);
public void notifyListeners(RendererChangeEvent event) { Object[] ls = this.listenerList.getListenerList(); for (int i = ls.length - 2; i >= 0; i -= 2) { if (ls[i] == RendererChangeListener.class) { ((RendererChangeListener) ls[i + 1]).rendererChanged(event);

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

1

    public void notifyListeners(MarkerChangeEvent event) {↵

1

    public void notifyListeners(RendererChangeEvent event) {↵

2

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

2

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

3

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

3

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

4

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

4

                if (ls[i] == RendererChangeListener.class) {↵

5

                    ((MarkerChangeListener) listeners[i + 1]).markerChanged(event);↵

5

                    ((RendererChangeListener) ls[i + 1]).rendererChanged(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