for (int index = 0; index < this.domainAxes.size(); index++) { ValueAxis axis = (ValueAxis) this.domainAxes.get(index); if (axis != null) { axisCollection.add(axis, getDomainAxisEdge(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/XYPlot.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.domainAxes.size(); index++) {
1
for (int s = 0; s < this.data.size(); s++) {
2
            ValueAxis axis = (ValueAxis) this.domainAxes.get(index);
2
            
3
            if (axis != null) {
4
                axisCollection.add(axis, getDomainAxisEdge(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