1309-2-4

public void clearRangeAxes() { for (int i = 0; i < this.rangeAxes.size(); i++) { ValueAxis axis = (ValueAxis) this.rangeAxes.get(i); if (axis != null) { axis.removeChangeListener(this); } } this.rangeAxes.clear(); fireChangeEvent();
public void clearRangeAxes() { for (int i = 0; i < this.rangeAxes.size(); i++) { ValueAxis axis = (ValueAxis) this.rangeAxes.get(i); if (axis != null) { axis.removeChangeListener(this); } } this.rangeAxes.clear(); fireChangeEvent();

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

1

    public void clearRangeAxes() {↵

1

    public void clearRangeAxes() {↵

2

            for (int i = 0; i < this.rangeAxes.size(); i++) {↵

2

            for (int i = 0; i < this.rangeAxes.size(); i++) {↵

3

                ValueAxis axis = (ValueAxis) this.rangeAxes.get(i);↵

3

                ValueAxis axis = (ValueAxis) this.rangeAxes.get(i);↵

4

                if (axis != null) {↵

4

                if (axis != null) {↵

5

                    axis.removeChangeListener(this);↵

5

                    axis.removeChangeListener(this);↵

6

                }↵

6

                }↵

7

            }↵

7

            }↵

8

            this.rangeAxes.clear();↵

8

            this.rangeAxes.clear();↵

9

            fireChangeEvent();↵

9

            fireChangeEvent();↵

10

10

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