for (int index = 0; index < this.rangeAxes.size(); index++) { ValueAxis yAxis = (ValueAxis) this.rangeAxes.get(index); if (yAxis != null) { axisCollection.add(yAxis, getRangeAxisEdge(index)); } }
for (int s = 0; s < this.data.size(); s++) { XYSeries series = (XYSeries) this.data.get(s); if (series.getY(series.indexOf(x)) != null) { return false; } }
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/data/xy/DefaultTableXYDataset.java
Method name: Map drawAxes(Graphics2D, Rectangle2D, Rectangle2D, PlotRenderingInfo) Method name: boolean canPrune(Number)
Number of AST nodes: 4 Number of AST nodes: 4
1
for (int index = 0; index < this.rangeAxes.size(); index++) {
1
for (int s = 0; s < this.data.size(); s++) {
2
            ValueAxis yAxis = (ValueAxis) this.rangeAxes.get(index);
2
            
3
            if (yAxis != null) {
4
                axisCollection.add(yAxis, getRangeAxisEdge(index))
3
XYSeries series = (XYSeries) this.data.get(s);
4
            if (series.getY(series.indexOf(x)) != null) {
5
;
5
                return false;
6
            }
6
            }
7
        }
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.2
Clones locationClones are in different classes
Number of node comparisons1