for (int i = 0; i < rangeAxisCount; i++) { Axis axis = (Axis) this.rangeAxes.get(i); if (axis != null) { axis.setPlot(this); axis.addChangeListener(this); } }
for (int i = 0; i < this.data.size(); i++) { XYDataItem item = (XYDataItem) this.data.get(i); if (item.getX().equals(x)) { return i; } }
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java File path: /jfreechart-1.0.10/src/org/jfree/data/xy/XYSeries.java
Method name: void readObject(ObjectInputStream) Method name: int indexOf(Number)
Number of AST nodes: 5 Number of AST nodes: 4
1
for (int i = 0; i < rangeAxisCount; i++) {
1
for (int i = 0; i < this.data.size(); i++) {
2
            Axis axis = (Axis) this.rangeAxes.get(i);
2
                XYDataItem item = (XYDataItem) this.data.get(i);
3
            if (axis != null) {
3
                if (item.getX().equals(x)) {
4
                axis.setPlot(this);
4
                    return i;
5
                axis.addChangeListener(this);
5
                }
6
            }
6
            }
7
        }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are in different classes
Number of node comparisons1